Informasi Umum
GodPay Payment Gateway API - QRIS Only. Semua endpoint menggunakan method GET dan mengembalikan respons JSON.
| Base URL | https://pg.godil.store/api/ |
| API Key | nkqb4ispt6ovC3Qv6UntSxySNgPOGXp0 |
| Payment Method | QRIS Only |
1. Buat QRIS Pembayaran
GET /create?apikey={apikey}&amount={amount}&invoice={id_pesanan}
Parameter:
| Parameter | Wajib | Deskripsi |
apikey | ✅ | API Key Anda |
amount | ✅ | Nominal (integer, tanpa titik) |
invoice | ✅ | ID pesanan unik |
Contoh Request:
https://pg.godil.store/api/create?apikey=nkqb4ispt6ovC3Qv6UntSxySNgPOGXp0&amount=1000&invoice=INV-20260821-001
Respons Sukses:
{
"status": true,
"data": {
"id_pay": "GDL20260821123456",
"amount": 1000,
"fee": 300,
"total_pay": 1300,
"status": "pending",
"qris_url": "https://pg.godil.store/qris/GDL20260821123456.jpg",
"created": "2026-08-21 12:34:56"
}
}
Respons Gagal:
{
"status": false,
"message": "API Key tidak valid"
}
2. Cek Status Pembayaran
GET /cekpay?invoice={invoice}
Parameter:
| Parameter | Wajib | Deskripsi |
invoice | ✅ | ID pesanan |
Contoh Request:
https://pg.godil.store/api/cekpay?invoice=INV-20260821-001
Respons Sukses:
{
"status": true,
"data": {
"id_pay": "GDL20260821123456",
"status": "success"
}
}
3. Batalkan Pembayaran
GET /batal?invoice={invoice}
Parameter:
| Parameter | Wajib | Deskripsi |
invoice | ✅ | ID pesanan |
Contoh Request:
https://pg.godil.store/api/batal?invoice=INV-20260821-001
Respons Sukses:
{
"status": true,
"data": {
"id_pay": "GDL20260821123456",
"status": "cancel"
}
}
Webhook
Pakasir akan mengirim notifikasi ke https://pg.godil.store/webhook.php saat pembayaran berhasil.
Payload Webhook:
{
"amount": 22000,
"order_id": "INV-20260821-001",
"project": "godilstore",
"status": "completed",
"payment_method": "qris",
"completed_at": "2026-08-21T12:35:00+07:00"
}
GodPay Payment Gateway • QRIS Only