juspay_flutter
A flutter plugin for juspay payment SDK.
Flutter Setup
- Add plugin dependency in
pubspec.yaml
dependencies:
juspay_flutter:
git:
url: [email protected]:deep-rooted-co/juspay_flutter.git
ref: <Git Commit SHA>
Note: This method is only until we get this plugin published to pub.dev
Android Setup
- Add to
android/build.gradle
buildscript {
....
repositories {
....
maven {
url "https://maven.juspay.in/jp-build-packages/hypersdk-asset-download/releases/"
}
}
dependencies {
....
classpath 'in.juspay:hypersdk-asset-plugin:1.0.3'
}
}
- Add to
android/app/build.gradle
apply plugin: 'hypersdk-asset-plugin'
- Create file
android/app/MerchantConfig.txt
with the following content
clientId = <your client id>
iOS Setup
- In
ios/Podfile
post_install do |installer|
fuse_path = "./Pods/HyperSDK/Fuse.rb"
clean_assets = true
if File.exist?(fuse_path)
if system("ruby", fuse_path.to_s, clean_assets.to_s)
end
end
end
- Create file
ios/MerchantConfig.txt
with the following content
clientId = <your client id>