A flutter plugin for juspay payment SDK.
- Add plugin dependency in
pubspec.yaml
dependencies:
juspay_flutter:
git:
url: https://github.com/deep-rooted-co/juspay_flutter.git
ref: <Git Commit SHA>
Note: This method is only until we get this plugin published to pub.dev
- 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>
- 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>