twigapay-inlinejs-sdk
v1.10.5
Published
Plugin for TwigaPay integration
Downloads
5
Readme
TwigaPay Inline Payment SDK
Install locally
yarn add twigapay-inlinejs-sdk
CDN option
- https://unpkg.com/[email protected]/src/index.js
Setup for website
<button class="tp_button" data-api_ref="payment-link" data-phone-number="254xxxxxxxx"
data-email="[email protected]" data-amount="100">
Pay Now
</button>
Include this before closing your body tag
<script src="src/index.js"></script>
<script>
TwigaPay.setup({
publicAPIKey: "<YOUR-API-KEY>",
redirectURL: "<YOUR-REDIRECT-URL>"
})
</script>