Skip to main content

Overview

APM Tokenisation lets your customer link a digital wallet (e.g., ShopeePay or GrabPay) once and reuse it securely for future payments. Use this flow when you want to:
  • Let customers link their wallet once and skip re-entering payment details for future orders.
  • Offer one-click repeat checkouts for returning buyers.
  • Support recurring or subscription-based payments, enabling automatic billing at fixed intervals.
  • Support on-demand or usage-based payments, where the final amount is confirmed only after the service is delivered.
This feature is particularly useful for merchants who want to improve payment completion rates and reduce friction for repeat buyers using local APMs. It also gives customers a convenient alternative to cards for ongoing payments, providing more flexibility across preferred local wallets. By supporting APM tokenisation, you can increase payment flexibility and boost conversions through smoother, familiar checkout experiences. This API integration includes 3 Steps

Create APM Tokenisation session

Generate a secure session and checkout link for the customer to connect their wallet.

Customer links wallet

Redirect the customer to the HitPay-hosted page where they authorise wallet linking.

Charge the linked wallet

Use the stored token to charge the linked wallet anytime in the future.

Step 1 - Create Tokenisation Session

HTTP Request

Query Parameters

Mandatory fields are customer_name and customer_email. Remember to include the header Content-Type: application/x-www-form-urlencoded.

Response

Step 2 - Redirect customer to checkout page (One time set up)

Redirect the customer to the “url” value. Checkout API UI Once the customer completes wallet linking, you can charge the linked wallet anytime using the Charge Linked Wallet API.

Step 3 - Charge Linked Wallet

Once the wallet is linked, you can charge it anytime using the endpoint below

HTTP Request

id is the id value from step 1 response.

Query Parameters

Response

FAQs

No, customers will not be charged during the linking process. The tokenisation flow is used purely to authorise future payments securely.
If the wallet does not have enough funds at the time of charge, the payment will fail, and HitPay will send an charge.failed webhook event. You can prompt the customer to top up and retry the charge.
Yes, once your customer has attached the wallet, you can charge any amount using the Charge Linked Wallet API
Ensure the following before moving to production - Change the base URL for all API calls to https://api.hit-pay.com/v1/ - Update API keys and Salt values from the production dashboard
Last modified on October 30, 2025