Customize the Inline Checkout UI
This page demonstrates how to show or hide sections of the Inline Checkout UI using the customization configuration.
You can:
- Hide the saved cards list
- Hide the Payment Methods list
- Remove the payment or cancel buttons
- Show a simplified form
- Control behavior for saving cards
customization Configuration Reference
Each section of the checkout UI can be individually shown or hidden using the following options:
customization: {
displayMode: "light" | "dark", // Theme appearance of the checkout
saveCards: {
showSaved: boolean, // Show saved cards list if available
showSaveCardOption: boolean, // Show "Save Card" checkbox during checkout
autoSave: boolean // Automatically save card without showing checkbox
},
paymentMethods: {
show: boolean // Show/hide the Alternative Payment Methods list
},
cardForm: {
show: boolean // Show/hide the credit/debit card input form
},
paymentButton: {
show: boolean, // Show/hide the "Pay" button
showAmount: boolean, // Show amount inside the button label
text: string // Custom text for the payment button (e.g. "Pay Now")
},
cancelButton: {
show: boolean, // Show/hide the cancel button
text: string // Custom text for the cancel button (e.g. "Cancel")
},
showMessages: boolean // Show system messages below buttons (errors, success)
}Live Example
JavaScript
More Examples
Show only card form (no saved cards, no APMs)
customization: {
cardForm: { show: true }, // ✅ Show credit/debit card inputs form
saveCards: {
showSaved: false, // ❌ Hide saved cards list
showSaveCardOption: false, // ❌ Hide "Save Card" checkbox
autoSave: false // ❌ Let user choose to save or not
},
paymentMethods: { show: false }, // ❌ Hide APM buttons
}Show only Payment Methods
customization: {
paymentMethods: { show: true }, // ✅ Show APM buttons (oxxopay, spei, etc.)
saveCards: {
showSaved: false, // ❌ Hide saved cards list
showSaveCardOption: false, // ❌ Hide "Save Card" checkbox
autoSave: false // ❌ Don't auto-save cards
},
cardForm: { show: false }, // ❌ Hide credit/debit card form
}Show only saved cards list
customization: {
saveCards: {
showSaved: true, // ✅ Show saved cards
showSaveCardOption: false, // ❌ Hide "Save Card" checkbox
autoSave: false // ❌ Don't auto-save new cards
},
cardForm: { show: false }, // ❌ Hide card inputs form
paymentMethods: { show: false }, // ❌ Hide APM buttons (oxxopay, spei, etc.)
}Hide buttons
customization: {
paymentButton: { show: false }, ❌ Hide "Pay" button (trigger programmatically)
cancelButton: { show: false }, // ❌ Hide cancel button
}You can freely combine any of these options to match your checkout use case.
Notes
- You can selectively show/hide any part of the checkout using
customization. - To trigger a payment programmatically, use
inlineCheckout.payment({...}). - Always call
configureCheckout()andinjectCheckout()before triggering payment.
ℹ️ These examples assume that all required third-party scripts (Skyflow, Openpay, etc.) are already included. See Integration Requirements for details on loading the correct
<script>tags.
Last updated on