Try the SDK

Choose SDK integration

1
SDK Ready
2
Start Subscription
3
PIN Dispatched
4
Verify PIN
5
Completed
1
SDK Ready
Auto-completed on page load — no action required from them
auto
Functionstpay.Sdk.onReady(callback)
What happens: The SDK script loads and calls your /api/tpay-auth endpoint. Your server generates a UUID, timestamp, and encrypts them using AES-256-CBC + PBKDF2 with your private key. The resulting signature is returned to the SDK, which is now initialized and ready.
SDK Initialized Successfully
AES-256-CBC signature validated · SDK is ready for subscription calls
2
Start Subscription
They fill in details and click 'Subscribe'
waiting
3
PIN Dispatched
Operator sends OTP to their MSISDN via SMS
waiting
4
Verify PIN
They enter the OTP received via SMS
waiting
5
Integration Completed Successfully
Subscription is now active — contract created
waiting
Download Full Example Project
Node.js Express backend · Frontend pages · README.md