PayLater button web component.
npm i @lendica/paylaterbutton
Once you have set up a module bundler to resolve ECMAScript import
, you can start by importing the component in javascript.
import '@lendica/paylaterbutton';
Then use the component as native HTML tags:
<paylater-button height="32" onclick="clickHandler()"></paylater-button>
Lendica iBranch has to be installed for the lendica API to work. Pass the clickHandler with lendica paylater function to open in-app popup.
const clickHandler = () => {
lendica.ibranch.openPayLater(partner_bill_uuid);
}
Name | Type | Default |
---|---|---|
height | number | 32 |
darkMode | boolean | false |
<paylater-button height="36" onclick="clickHandler()"></paylater-button>
<paylater-button height="36" darkMode="true" onclick="clickHandler()"></paylater-button>