b24-direct-debit-sdk
v1.0.0
Published
> Easy to subscribe to a direct debit payment with multiple bank partners just one time integration
Downloads
19
Readme
Bill24 Direct Debit Subscription SDK for Web Platform
Easy to subscribe to a direct debit payment with multiple bank partners just one time integration
Table of Contents
Installation
To install the SDK, use npm:
npm install b24-direct-debit-sdk
or import direct from the CDN:
<script src="https://unpkg.com/b24-direct-debit-sdk" type="module"></script>
Usage
For frontend app
import b24SubscriptionSdk from b24-direct-debit-sdk;
b24SubscriptionSdk.initSdk(configuration);
For raw html
<script>
b24SubscriptionSdk.initSdk(configuration);
</script>
Sample configuration
sample configuration
const configuration = {
subscriptionNo:'GKO9JG7K4kqC',
refererKey:'d945botz-dc54-483d-9759-f9858a9211a0',
language :'en',
isDarkMode : false,
isProduction: false,
isPopup: true
}
Configuration
subscriptionNo
(string) (required): The subscription number.refererKey
(string) (required): Key to identify the merchant you can get this from bill24.language
(string) (optional): Display language could be (en/km).isDarkMode
(boolean) (optional): Whether the UI is in dark mode. default isfalse
.isProduction
(boolean) (optional): If the environment is production. default istrue
.isPopup
(boolean) (optional): Allow SDK to popup or redirect. default istrue
.