juspay_flutter

A flutter plugin for juspay payment SDK.

CI

Flutter Setup

  1. 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

  1. 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'
    }
}
  1. Add to android/app/build.gradle

apply plugin: 'hypersdk-asset-plugin'
  1. Create file android/app/MerchantConfig.txt with the following content

clientId = <your client id>

iOS Setup

  1. 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
  1. Create file ios/MerchantConfig.txt with the following content

clientId = <your client id>

GitHub

View Github