Mode Testing & Production
IsiKuota menggunakan satu Base URL untuk semua transaksi. Tidak ada endpoint atau API key yang berbeda antara testing dan production.
https://api.isikuota.com/v1
Untuk beralih ke mode testing, cukup tambahkan parameter "testing": true pada body request.
Perbandingan
| Mode Testing | Mode Production | |
|---|---|---|
| Base URL | https://api.isikuota.com/v1 | https://api.isikuota.com/v1 |
| API Key | Key yang sama | Key yang sama |
| Parameter | "testing": true | "testing": false atau tidak dikirim |
| Potong saldo | ❌ Tidak | ✅ Ya |
| Transaksi nyata | ❌ Tidak | ✅ Ya |
| Webhook/Callback | ✅ Tetap dikirim | ✅ Tetap dikirim |
Mode Testing
Tambahkan "testing": true pada body request untuk mensimulasikan transaksi tanpa memotong saldo.
{
"api_id": "your_api_id",
"timestamp": 1748678400,
"signature": "abc123...",
"cmd": "prepaid",
"code": "TSEL21",
"customer_no": "08123456789",
"testing": true
}
Contoh response mode testing:
{
"success": true,
"code": "ORDER_SUCCESS",
"message": "Transaksi berhasil diproses",
"data": {
"ref_id": "TRX12345asdxxx",
"status": "Success",
"customer_no": "08123456789",
"code": "TSEL21",
"name": "Telkomsel 21.000",
"price": 21425,
"sn": "1234-5678-9012-3456",
"created_at": "2026-05-31 12:36:46"
},
"errors": null,
"meta": null
}
tip
Gunakan mode testing selama proses development dan QA. Saat siap production, hapus parameter testing atau set ke false.
Mode Production
Tidak perlu parameter tambahan. Cukup kirim request seperti biasa tanpa "testing":
{
"api_id": "your_api_id",
"timestamp": 1748678400,
"signature": "abc123...",
"cmd": "prepaid",
"code": "TSEL21",
"customer_no": "08123456789"
}
Checklist sebelum go-live
Sebelum mulai transaksi production, pastikan:
- Semua alur sudah diuji dengan
testing: true - Webhook/callback sudah dikonfigurasi dan diuji
- Error handling sudah ditangani dengan benar
- Saldo deposit sudah mencukupi
-
ref_idsudah menggunakan format unik per transaksi
Beralih ke Production
Tidak perlu mengubah apapun selain menghapus parameter testing:
// Mode testing
$payload = [
'cmd' => 'prepaid',
'code' => 'TSEL21',
'customer_no' => '08123456789',
'testing' => true, // ← hapus baris ini saat production
];
// Mode production
$payload = [
'cmd' => 'prepaid',
'code' => 'TSEL21',
'customer_no' => '08123456789',
];