InPage is a payment method that allows you to integrate the Alma experience directly into your website.
<script src="https://cdn.jsdelivr.net/npm/@alma/in-page@2.x/dist/index.umd.js"></script>
<div id="alma-inpage"></div>
const inPage = Alma.InPage.initialize({
merchantID: "merchantID",
selector: "#alma-inpage",
amountInCents: 10000, // 100€
installmentsCount: 3,
});
// When your customer clicks on `pay` button, call the API to generate a payment
// Start the payment (open the modal)
inPage.startPayment({
paymentID: "paymentID",
});
The complete flow looks like this :
Read the full documentation to learn more about InPage API.