Skip to main content
Complete a cardholder-initiated transaction (CIT) in Waffo Checkout and convert the card used for that payment into a token for subsequent merchant-initiated transactions (MIT). Your page and backend do not handle plaintext card data.

When to use this flow

Use Waffo Checkout card binding when you already use Waffo Checkout and need to charge the same user after the first payment for:
  • Scheduled MIT payments on an agreed billing schedule
  • Unscheduled MIT payments while the user is offline
  • A merchant-managed billing schedule implemented with ONE_TIME_PAYMENT
If you need to bind a card without the current payment, or want to design the card-binding UI on your own page, use Merchant-side card binding.

End-to-end sequence

How it differs from merchant-side card binding

Prerequisites

  • You have completed the Checkout integration.
  • The order uses ONE_TIME_PAYMENT.
  • Your merchant account has a card payment method that supports MIT. When setupFutureUsage: true, Waffo offers only MIT-capable payment methods.
  • Your merchant account has been allowlisted by Waffo for MIT. You cannot initiate MIT before approval.
  • You use a stable userInfo.userId for the same user. Pass the same user ID when using the token later.

Integration steps

1

Create a payment and declare future use

Call Create payment and set setupFutureUsage: true in paymentInfo.
2

Send the user to Checkout

Parse orderAction as you would for a regular Checkout payment, then redirect the user to Waffo Checkout. The user enters a new card and completes the payment.If the user selects an existing saved card, Waffo reuses it instead of binding the same card again.
3

Get the token

You can get the token through either of the following notifications. We recommend Option 2.Option 1: Get the token from the payment result notificationAfter the payment succeeds, Waffo sends PAYMENT_NOTIFICATION to the order’s notifyUrl. Read the generated token from result.paymentInfo.userPaymentAccessToken.Payment notification excerpt with the fields used in this flow:
Store result.paymentInfo.userPaymentAccessToken after payment success. If the payment notification is not delivered, call POST /api/v1/order/inquiry, pass either paymentRequestId or acquiringOrderId, and read the same field from its response. For example:
Option 2: Get the token from the Token notification (recommended)Configure a dedicated tokenizationNotifyUrl before you start card binding. After receiving TOKENIZATION_NOTIFICATION and verifying its signature, read and store the token from result.tokenId. This option also reports later Token status changes and card information updates. This address does not replace the notifyUrl used for payment results. See How each notification address is selected.Payment success is determined by PAYMENT_NOTIFICATION or the order inquiry result. After you receive a Token status notification, update your local Token record. Before initiating a subsequent MIT, confirm that the current status is VERIFIED. For status and recovery rules, see Token status.
4

Use the token for MIT

Only merchants allowlisted by Waffo for MIT can initiate MIT. Scheduled and unscheduled MIT are unavailable before approval.
For a subsequent charge, pass the token you obtained as paymentInfo.userPaymentAccessToken and set merchantInitiatedMode.
merchantInitiatedMode supports:
  • scheduled: Charge on a pre-agreed, fixed schedule
  • unscheduled: Merchant-initiated charge without a fixed schedule

Troubleshooting

No payment method is available

When setupFutureUsage: true, Waffo filters out payment methods that do not support MIT. Confirm that your merchant account has an MIT-capable card agreement. Contact Waffo technical support if no eligible method remains.

Payment succeeded but the token has not arrived

First check that tokenizationNotifyUrl is configured and that you received TOKENIZATION_NOTIFICATION. Read the token from result.tokenId. You can also get it from result.paymentInfo.userPaymentAccessToken in PAYMENT_NOTIFICATION, or use Order Inquiry if notifications are not delivered. Continue to confirm payment success through the payment result notification or Order Inquiry.

MIT cannot be initiated

Confirm that the merchant is allowlisted by Waffo for MIT. Even with a token, a merchant cannot initiate scheduled or unscheduled MIT before approval.