Eligibility Check (Native)
Always invoke this method whenever there is a change in the order amount.
To display the complete list of SDK based wallet instruments (ApplePay), call the below process function with action as ‘sdkWalletEligibility’.
Depending on the isEligible parameter in the response, the merchant needs to decide to show or hide the corresponding instrument.
Verify whether the device supports Apple Pay
The applePayCapabilities method asynchronously contacts Apple Pay servers as part of the verification process and returns the paymentCredentialStatus of the device.
The following are possible return values:
paymentCredentialsAvailableConfirms that the device supports Apple Pay and there’s at least one active payment credential in Wallet that qualifies for payments on the web. Show an Apple Pay button and offer Apple Pay as the primary, but not necessarily sole, payment option.
applePayUnsupportedIndicates that the device doesn’t support Apple Pay. Don’t display an Apple Pay button or offer Apple Pay as a payment option.
Request Parameters
Unique identifier for the request.
Always in.juspay.hyperapi
Contains the main request payload.
payload Object Parameters
Country code
Example:- AE
Mandate details for recurring payments.
Transaction currency
Example:- AED
Action type. Always sdkWalletEligibility.
Unique customer ID generated by Juspay.
Transaction amount.
Authentication token from the merchant backend.
Use gatewayId to route payments through a specific gateway configured in your Juspay account.
Use gatewayReferenceId to target a particular gateway setup using its specific reference ID.
List of payment methods to check eligibility.
mandate Object Parameters
This is the billing frequency for the subscription. This also gets displayed on the payment sheet.
Example:- Monthly
Text for the billing agreement.
The merchant can optionally include a localized billing_Agreement string (up to 500 characters). This string can be used to describe recurring payment details such as the amount, frequency, or other payment terms, as well as how the user can cancel the subscription. However, it is not meant to replace the full payment terms that are provided outside of the Apple Pay payment sheet.
End date of the mandate in epoch milliseconds.
This field allows the merchant to display the recurring subscription amount that will be charged for future debits. If the merchant does not provide this value, the mandate max_amount will be shown instead.
Start date of the mandate in epoch milliseconds.
A URL that directs the user to a page where they can modify or remove the payment method used for the recurring payment.
Max amount which can be debited in subsequent mandate payments.
A description of the deferred payment. Use a simple language description that explains what the payment is for.
Example:- Hotel stay, 2 nights
paymentMethods Array Parameters
Always WALLET
Use JP_APPLEPAY for mandates or APPLEPAY for normal payments.

