๐ฆ SDK Downloads
PHP
composer require tcpay/sdk
Python
pip install tcpay-sdk
JavaScript
npm install @tcpay/sdk
.NET
NuGet: TCPay.SDK
Java
Maven: za.co.tcpay
โก Quickstart
// npm install @tcpay/sdk
const { TCPayClient } = require('@tcpay/sdk');
const client = new TCPayClient({
clientId: 'sandbox_retail_YOUR_ID',
clientSecret: 'YOUR_SECRET',
scope: 'retail',
environment: 'sandbox',
});
const result = await client.retail.buyAirtime({
network: 'MTN',
msisdn: '27821234567',
amount: 10.00,
});
console.log(result.transaction_id);
๐ค MCP AI Tools โ 27 available
buy_airtime
pay_bill
wallet_transfer
create_eft_batch
create_debicheck_mandate
get_wallet_balance
export_to_accounting
get_service_status
๐ Recent Webhook Deliveries
POSThttps://your-server.com/tcpay/webhook200transaction.completed11:12:04
POSThttps://your-server.com/tcpay/webhook200transaction.completed11:08:22
POSThttps://your-server.com/tcpay/webhook503transaction.failed โ retry 1/310:55:41