Go + Supabase · Auto payment watcher · https://shopeepay.tgx-app.com
Semua endpoint API (kecuali halaman ini dan /health) membutuhkan header:
Authorization: Bearer <token> Content-Type: application/json
| Method | Path | Keterangan |
|---|---|---|
| GET | /health | Cek status service |
| POST | /create-qris | Buat QRIS dinamis |
| POST | /check-qris | Cek & sync status order |
| POST | /cancel-qris | Batalkan order pending |
{
"amount": 5000,
"expired_minutes": 15
}
Nominal unik per hari: request kedua dengan amount sama otomatis naik +1 (5000 → 5001).
{ "orderId": "INV-XXXXXXXXXX-XXXXXX" }
{ "orderId": "INV-XXXXXXXXXX-XXXXXX" }
Setiap 5 detik, server mengecek order pending dan mutasi ShopeePay Partner. Jika nominal cocok, status diupdate ke success.
curl -X POST https://shopeepay.tgx-app.com/create-qris \
-H "Authorization: Bearer YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"amount":5000,"expired_minutes":15}'