InPage is a payment method that allows you to integrate the Alma experience directly into your website.
npm install @alma/in-pageInPage is a payment method that allows you to integrate the Alma experience directly into your website.
``html`
`html`
`jspay
const inPage = Alma.InPage.initialize({
merchantID: "merchantID",
selector: "#alma-inpage",
amountInCents: 10000, // 100€
installmentsCount: 3,
});
// When your customer clicks on button, call the API to generate a payment``
// Start the payment (open the modal)
inPage.startPayment({
paymentID: "paymentID",
});
The complete flow looks like this :
!Schema
Read the full documentation to learn more about InPage API.