Skip to main content

Installment Plans

In some jurisdictions, you may be legally required to present customers with a detailed breakdown of their installment plan options before they complete their transaction.

Purse supports installment payment methods from various partners such as Alma, Klarna, Floa, Riverty, Scalapay, and Oney.

To simulate an installment plan, use the simulateLoan() method. You should check if the method is simulable before calling the method.

const allMethods = checkout.paymentMethods.value
const method = allMethods.find((method) => method.method === "3x");

if (!method) {
console.error("Payment method not found");
return;
}

// check if the method is simulable
if(method.simulable) {
method.simulateLoan({
amount: 360,
currency_code: "EUR"
}).then((installmentPlan) => {
// do something with the installment plan
});
}