klickl-express-crypto-sdk
v2.0.0
Published
Klickl On-Ramp for SDK
Maintainers
Readme
On-Ramp Cryptocurrencry By Klickl with SDK
Installation
npm i klickl-express-crypto-sdk --saveBrowser
<div id="klickl-plugin-sdk"></div>Instantiation
import { KlicklPlugin } from 'klickl-express-crypto-sdk'const KP = new KlicklPlugin({
env: "sandbox / product",
api_key: 'Your API Key',
target: '#klickl-plugin-sdk',
redirect_url: 'Payment success redirect url',
language: 'en',
theme: 'light',
expand_options: {
email: '[email protected]',
}
});
KP.init();Params
env:Environments, Optional values: sandbox、productrequiredapi_key: API Keyrequiredtarget: Specify the DOM node to renderrequiredlanguage: Language, defaulten- optionaltheme: Theme, defaultlight- optionalredirect_url: The address of the page to jump back to after successful payment, usually your order page - optionalexpand_options: More parameter configuration - optional
Webhook
KP.on('KP.FORMS_CHANGE', (res) => {})
.on('KP.SUBMIT', (res) => {})
.on('KP.SUCCESS', (res) => {})
.on('KP.FAILED', (res) => {})