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
String
Mandatory

Contains the main request payload.

payload Object Parameters

action
String
Mandatory

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

orderId
String
Mandatory

Unique identifier for the order.

paymentMethod
String
Mandatory

Payment method to be used.

Example:- APPLEPAY

sdkPresent
String
Mandatory

Specifies the SDK environment

Example:- IOS_APPLEPAY

clientAuthToken
String
Mandatory

Authentication token generated by the merchant backend.

gatewayId
String
Mandatory

Include only if present in eligibility response

gatewayReferenceId
String
Mandatory

Include only if present in eligibility response.

sdkTxnAmount
String
Optional

Send this if the transaction amount differs from the amount sent in the sdkWalletEligibility call.

showLoader
Boolean
Mandatory

Displays a loading indicator during the transaction flow.

Last updated 8 months ago