Skip to content

Midtrans — Over The Counter

Receive cash payments via retail outlets.

Supported Retailers

  • ALFAMART
  • INDOMARET

How to Create

http
POST /v1/payments/create
json
{
  "amount": 15000000, 
  "currency": "IDR",
  "method_type": "over_the_counter",
  "method_detail": {
    "type": "over_the_counter",
    "store": "INDOMARET"
  },
  "customer_name": "Budi Santoso",
  "expiry_minutes": 1440
}

Response

json
{
  "success": true,
  "data": {
    "status": "pending",
    "method_data": {
      "type": "over_the_counter",
      "store": "INDOMARET",
      "payment_code": "9876543210"
    }
  }
}

Display payment_code to the customer to be paid at the cashier.

Gerbang Pay API Documentation