3. Initiating the SDK

Juspay SDK consists of multiple microapps that needs to be initialized to facilitate payments. The SDK initiation is a fire-and-forget call that can be triggered on the merchant's home screen or when the user adds items to their cart.

To initialise the SDK, client needs to call the initiate SDK API. The initiate api call boots up Express Checkout SDK and makes it ready for all other operations

Follow the below steps to make an initiate SDK call

Warning

Initiate is to be called in the onCreate() method of your application's main activity (Home screen). Not following this will lead to increased latency.

Step 3.1.
Create an instance of HyperServices
Step 3.2.
Create Initiate payload
Step 3.3.
Create CallbackHandler
Step 3.4.
Call initiate
Last updated 1 year ago