Transaction Initiation

Once the order is created and eligibility is determined, initiate the transaction when the user clicks the Proceed to Pay button.

Steps to Initiate the Transaction

  1. Invoke the walletTxn Process Call
    On clicking Proceed to Pay, trigger the walletTxn process using the Juspay SDK. This begins the Apple Pay transaction flow.

  2. Apple Pay Sheet Presentation
    Juspay will automatically display the Apple Pay sheet to the user. The user can authenticate using Face ID, Touch ID, or passcode based on their device settings.

  3. User Completes Payment
    Once the user authorizes the payment, Juspay securely processes the transaction using the Apple Pay token in the background.

  4. Handle the Process Result
    The SDK will return a response containing the transaction result.

Request Parameters

requestId
String
Mandatory

Unique identifier for the request.

service
String
Mandatory

Always set to in.juspay.hyperapi

payload
Object
Mandatory

Contains the main request payload.

payload Parameters

action
String
Mandatory

Type of action to be performed. Use walletTxn for wallet-based transactions.

country
String
Mandatory

Country code

Example:- AE

sdkPresent
String
Mandatory

Specifies the SDK environment

Example:- IOS_APPLEPAY

paymentMethod
String
Mandatory

Payment method to be used (e.g., JP_APPLEPAY).

orderId
String
Mandatory

Unique identifier for the order.

currency
String
Mandatory

Transaction currency

Example:- AED

amount
String
Mandatory

Transaction amount.

clientAuthToken
String
Mandatory

Authentication token generated by the merchant backend.

showLoader
Boolean
Mandatory

Displays a loading indicator during the transaction flow.

shouldCreateMandate
Boolean
Mandatory

Set to true for mandate (recurring) transactions.

Last updated 8 months ago