QRIS ShopeePay API

Go + Supabase · Auto payment watcher · https://shopeepay.tgx-app.com

Autentikasi

Semua endpoint API (kecuali halaman ini dan /health) membutuhkan header:

Authorization: Bearer <token>
Content-Type: application/json

Endpoint

MethodPathKeterangan
GET/healthCek status service
POST/create-qrisBuat QRIS dinamis
POST/check-qrisCek & sync status order
POST/cancel-qrisBatalkan order pending

POST /create-qris

{
  "amount": 5000,
  "expired_minutes": 15
}

Nominal unik per hari: request kedua dengan amount sama otomatis naik +1 (5000 → 5001).

POST /check-qris

{ "orderId": "INV-XXXXXXXXXX-XXXXXX" }

POST /cancel-qris

{ "orderId": "INV-XXXXXXXXXX-XXXXXX" }

Auto watcher

Setiap 5 detik, server mengecek order pending dan mutasi ShopeePay Partner. Jika nominal cocok, status diupdate ke success.

Contoh cURL

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}'