@waffo/payment-sdk, which supports directly integrating payment and card binding capabilities into merchant pages.
Installation
Initialization
Feature overview
| Feature | Method | Description |
|---|---|---|
| Card tokenization | sdk.tokenizationSubmit() | Securely submits card information and generates a token |
| Embedded checkout | WaffoSDK.renderIframe() | Embeds the Waffo checkout as an iframe in the merchant page |
Card tokenization (tokenizationSubmit)
Encrypts and submits the user’s card information to Waffo. The merchant server never touches the plaintext card number.Prerequisites
The merchant backend must first call the Generate API to obtain atokenSessionId.
Submit card
Handle result
Embedded checkout (renderIframe)
Embeds the Waffo checkout as an iframe in the merchant page. Suitable for merchants who do not want to build their own checkout UI.- Custom theme colors
- Custom logo
- Apple Pay / Google Pay buttons
- Multiple languages
Checkout appearance customization
The checkout appearance theme (cashierAppearance), language (cashierLanguage), and payment method filtering are configured through the order-creation paymentInfo parameter. For the full value ranges, format, and examples, see Checkout customization.