Payment Methods
This example shows how to retrieve the list of active payment methods using the Tonder Web SDK Lite.
You can use this data to render a custom UI and let the user select their preferred payment method (e.g., cards, bank transfers, wallets, etc).
Expected Output
The SDK returns an array of payment methods with the following structure:
export interface PaymentMethod {
id: string;
payment_method: string;
priority: number;
category: string;
icon: string;
label: string;
}Use this list to display icons and labels in your UI. You are free to use your own icons or the ones provided.
Available Payment Methods
You may either retrieve available methods from the SDK or hardcode one of the following supported APMs:
oxxopaymercadopagospeiWaldosTelecommElasturianoBancomerCirculokPaycashCashmxWalmartAlsuperKiosko7elevenCalimaxPaynetComercialmexicanaSorianaBodegaExtraSuperamaBenavidesDelahorroLamasbarataStamariaSamsclubBanorteFarmromaCodiExample Code
JavaScript
Notes
- You must call
injectCheckout()before retrieving payment methods.
Ready to build your own UI? You can now render these methods and pass the payment_method key into the payment flow.
Last updated on