Skip to content

Lendica/paylater-button

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lendica PayLater Button

PayLater button web component.

npm version

Installation

Install the PayLater button from npm

npm i @lendica/paylaterbutton

Usage

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>

Passing the click handler to open PayLater select-terms in app

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);
}

Properties

Name Type Default
height number 32
darkMode boolean false

Light mode rendered example

<paylater-button height="36" onclick="clickHandler()"></paylater-button>

Dark mode rendered example

<paylater-button height="36" darkMode="true" onclick="clickHandler()"></paylater-button>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published