Adding SDK dependency

Android

Currently, SDK is available as a Gradle dependency. Please follow the below steps to set up an android project with the SDK.

Step 1: Add the following maven repository to the build.gradle.
Please make sure that you add it to the project dependency section. (ex:build.gradle (Project:ProjectName) )

allprojects {
    repositories {
        google()
        jcenter()

       //Other maven url
        maven {
          url "https://maven.juspay.in/jp-build-packages/hyper-sdk/"
        }
      //Other maven url
    }
}

Step 2: Add the following compile dependency to your project to the module where SDK will be used usually added to app/build.gradle (Module: app). Please make sure you don’t accidentally add it to script dependencies.

dependencies {
    // ......
    // HyperSDK
        implementation 'in.juspay:hypersdk:2.0.4-rc.78'
    // ......
}

🚧

in.juspay:hypersdk:2.0.4-rc.78 - For reference only. Contact Juspay support team for the current version.

iOS

Currently iOS sdk is available as cocoapods dependency to streamline integration. Please follow the below steps to set up ios sdk.

Step 1 : Add the following line in your podfile.

pod 'HyperSDK', '2.1.15'

🚧

pod 'HyperSDK', '2.1.15' - For reference only. Contact support for the current version.

Step 2 : Run the below line via a command line interface to setup and Install the newly added pod.

pod install

In case there is an error Unable to find a specification for HyperSDK while pod install, local pod repo needs to be updated. You will need to run:

pod repo update

React Native

React native module for HyperSDK enables payment orchestration via different dynamic modules. Refer hyper-sdk-react to check the package on npm registry.

Installation

npm install hyper-sdk-react

or

yarn add hyper-sdk-react
Android

Add following maven url in top build.gradle:

maven { url "https://maven.juspay.in/jp-build-packages/hyper-sdk/"}

(Optional) Add the following ext property in top build.gradle if you want to override the base SDK version present in the plugin

buildscript {
   ...
   ext {
       ...
       hyperSDKVersion = "2.0.4-rc.78"
       ...
   }
   ...
}

Note: This version is just for explanatory purposes and may change in future. Contact Juspay support team for the latest SDK version.

iOS

Run the following command inside the ios folder of your react native project:

pod install

Add the following property in package.json of your project before running pod install if you want to override the base SDK version present in the plugin

{
  "scripts": {
  ....
  },
  "dependencies": {
  ....
  },
  "devDependencies": {
  ....
  },
  "hyperSdkIOSVersion": "2.1.15"
}

Note: This version is just for explanatory purposes and may change in future. Contact Juspay support team for the latest SDK version.


Did this page help you?