Skip to content

alma/widgets

Repository files navigation

Alma Widgets

Changelog

View all Changelog

Setup

Add the widget to your page

CSS
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@alma/[email protected]/dist/widgets.min.css" />
JS
<script src="https://cdn.jsdelivr.net/npm/@alma/[email protected]/dist/widgets.umd.js"></script>

Create the container

<div id="alma-widget"></div>

Initialize the widget

<script>
  ;(function () {
    var widgets = Alma.Widgets.initialize('<YOUR MERCHANT ID>', Alma.ApiMode.LIVE)
    widgets.add(Alma.Widgets.PaymentPlans, {
      container: '#alma-widget',
      purchaseAmount: 45000,
    })
  })()
</script>

Going further

read the full documentation