Allows the customer to split the total order value between two carts. Ideal for high-value purchases or if the user wants to use more than one payment method, this is a dedicated feature for Vault.
Prerequisites:
- The option must be enabled in the merchant configuration.
- Currently only supports splitting between 2 cards maximum.
deunaSDK.initElements({
orderToken: "TOKEN",
.
.
.
behavior: {
paymentMethods: {
creditCard: {
splitPayments: {
maxCards: 2, // Maximum number of cards allowed
},
},
},
},
});
💡 Usage example: A customer can pay $500 using two different cards, splitting the amount between both.
specific events for split payments:
Callback | When is it triggered? | Metadata |
---|---|---|
| 1. Initial installment selection
Ex: user selects 2 installments on card 1 → onInstallmentSelected with | The metadata for this event varies based on whether it is SplitPayments, by default, or the normal flow (outside of split payments). This information is available at this link |