Securely convert users’ bank card information into a token, so there is no need to enter the card number again for subsequent payments.Documentation Index
Fetch the complete documentation index at: https://waffo.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Core flow
Card binding flow
Merchant backend calls the Generate API
Call
POST /api/v1/tokenization/generate, passing parameters such as tokenRequestId, merchantUserId, and tokenType: "CARD". On success, it returns tokenSessionId.See Generate API for details.Frontend submits card information
Use the The SDK automatically encrypts card data. The merchant server never touches the plaintext card number, so PCI DSS certification is not required.
tokenizationSubmit method of @waffo/payment-sdk to encrypt the card data and submit it to the Waffo server:Alternative: PCI-DSS merchants submit directly
If the merchant is PCI-DSS certified, they can submit sensitive information such as the card number directly from the backend through thetokenData field of the Generate API, without using the frontend SDK. In this case, the API returns tokenId directly.
Pay with a token
After obtainingtokenId, pass it when creating an order to replace the card number:
Token management
| Action | API | Description |
|---|---|---|
| Inquiry | POST /api/v1/tokenization/inquiry | Retrieve the list of tokens a user has bound |
| Remove | POST /api/v1/tokenization/remove | Delete a bound token |
Security mechanisms
- The frontend SDK automatically encrypts card data; the merchant server never touches the plaintext card number
- All API requests and responses use SHA256WithRSA signature verification
- Supports 3DS verification to enhance payment security
- Non-PCI-DSS merchants must use the frontend SDK and cannot pass card numbers directly from the backend