1.10.5 • Published 4 years ago
twigapay-inlinejs-sdk v1.10.5
TwigaPay Inline Payment SDK
Install locally
yarn add twigapay-inlinejs-sdk
CDN option
Setup for website
<button class="tp_button" data-api_ref="payment-link" data-phone-number="254xxxxxxxx"
data-email="example@twigapay.com" 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>