Skip to content

Midtrans — QRIS

Gerbang Pay provides Dynamic QRIS via Midtrans, which can be scanned by any e-wallet or M-Banking app.

How to Create

http
POST /v1/payments/create
json
{
  "amount": 5000000, 
  "currency": "IDR",
  "method_type": "qris",
  "method_detail": {
    "type": "qris"
  },
  "customer_name": "Budi Santoso",
  "expiry_minutes": 15
}

Response

json
{
  "success": true,
  "data": {
    "id": "...",
    "status": "pending",
    "method_data": {
      "type": "qris",
      "qr_string": "000201010211...",
      "qr_image_url": "https://api.midtrans.com/v2/qris/..."
    }
  }
}

You can use qr_string to generate the QR Code locally, or use qr_image_url to display the QR image directly from Midtrans.

Gerbang Pay API Documentation