Waffo provides the frontend SDKDocumentation Index
Fetch the complete documentation index at: https://waffo.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
@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
Other frontend components
Google Pay
Integrate a Google Pay button on the merchant website or in the app. After the user clicks it, they can complete the payment using a credit/debit card in their Google account. Supported options:- Web SDK integration: Embed Google Pay on web pages via the Waffo Web SDK
- Android SDK integration: Integrate via the Google Pay Android SDK
- Built into checkout: Contact Waffo to enable the Google Pay button on the checkout page
Apple Pay
Complete the payment by passing the Apple Pay encrypted token via thepaymentTokenData parameter.
Checkout appearance customization
Pass JSON CSS variables via thepaymentInfo.cashierAppearance parameter to customize the checkout theme color, fonts, and more.
Use the paymentInfo.cashierLanguage parameter to set the checkout language (IETF BCP 47 format, for example en-HK, zh-Hant-HK).