GoPay

GoPay is a digital wallet from Indonesia and part of the GoTo Group, which also includes the ride-hailing app Gojek. GoPay is widely accepted in Indonesia and commonly used for online purchases and in-app payments. According to Gojek, GoPay is accepted by over 900,000 merchants across channels, with 93% of small and medium businesses seeing increased transaction volumes and 55% reporting higher revenues after enabling GoPay. Learn more about GoPay.

Payment method properties

Markets (consumer)ID
Processing currenciesIDR
Consumer currenciesIDR
Authentication methodsREDIRECT
Authentication timeout14 minutes
Minimum payment amount1.00 IDR
Maximum payment amountVaries by bank
Payment instrumentPASSTHROUGH_WALLET
Recurring paymentsNo
Separate capturesNo
RefundFull - Partial - Multiple
Refund validity30 days
DisputesNo
Settlement riskNo

Make a GoPay payment

GoPay payments follow our standardized REDIRECTpayment flow. To create a GoPay payment, you'll need to provide the following data at minimum when calling our payment charges endpoint:

Field

Description

paymentMethod

GOPAY

amount.value

The amount to be paid in the smallest units of the currency used.

amount.currency

IDR

consumer.name

Full name of the consumer.

consumer.country

The country of residence of the consumer.

authenticationSettings: REDIRECT settings.returnUrl

Specify the URL to which the consumer should be redirected after completing the payment. This is required for the REDIRECT payment flow.

Request

POST /v1/payment-charges

{
  "paymentMethod": "GOPAY",
  "amount": {
    "value": 1000,
    "currency": "IDR"
  },
  "consumer": {
    "name": "John Smith",
    "country": "ID"
  },
  "authenticationSettings": [
    {
      "type": "REDIRECT",
      "settings": {
        "returnUrl": "https://www.webshop.com/order-results-page"
      }
    }
  ]
}

Response

{
  "id": "charge_Y3JVzvEaJpvG53xd2R2Zt",
  "paymentMethod": "GOPAY",
  "paymentMedium": "ECOMMERCE",
  "scheduleType": "UNSCHEDULED",
  "instrumentId": "instr_Asu0ig2PXXZSiNrhY44A5",
  "currency": "IDR",
  "country": "ID",
  "status": "AUTHENTICATION_PENDING",
  "consumer": {
    "name": "John Smith",
    "country": "ID"
  },
  "authenticationMethods": [
    {
      "details": {
        "requestUrl": "https://redirection-target.ppro.com",
        "requestMethod": "GET"
      },
      "type": "REDIRECT"
    }
  ],
  "authorizations": [
    {
      "id": "authz_aPobet0FNZNU1bYqfexFd",
      "amount": 1000,
      "status": "AUTHENTICATION_PENDING",
      "createdAt": "2025-06-21T08:34:20.766Z",
      "updatedAt": "2025-06-21T08:34:20.766Z"
    }
  ],
  "captures": [],
  "refunds": [],
  "discards": [],
  "voids": [],
  "createdAt": "2025-06-21T08:34:20.114Z",
  "updatedAt": "2025-06-21T08:34:20.766Z",
  "_links": {
    "authorizations": {
      "href": "/v1/payment-charges/charge_Y3JVzvEaJpvG53xd2R2Zt/authorizations"
    },
    "captures": {
      "href": "/v1/payment-charges/charge_Y3JVzvEaJpvG53xd2R2Zt/captures"
    },
    "refunds": {
      "href": "/v1/payment-charges/charge_Y3JVzvEaJpvG53xd2R2Zt/refunds"
    },
    "discards": {
      "href": "/v1/payment-charges/charge_Y3JVzvEaJpvG53xd2R2Zt/discards"
    },
    "voids": {
      "href": "/v1/payment-charges/charge_Y3JVzvEaJpvG53xd2R2Zt/voids"
    }
  }
}

Pick the desired authentication method

REDIRECT

Redirect your consumer to the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestUrl.
For example, with the value of https://redirection-target.ppro.com/ using the returned $.authenticationMethods[?(@.type == "REDIRECT")].details.requestMethod HTTP method.

APP_NOTIFICATION

Ask your consumer for the required identifier needed to initiate the push notification, often a phone or bank account number. For MBWAY payments, provide the consumer's phone number.

Handling the payment result

REDIRECT

  1. After the consumer completes the payment, they are redirected to the returnUrl specified in the payment charge creation request.
  2. Upon redirect back to your site, retrieve the latest payment status by performing a GET /v1/payment-charges/{paymentChargeId}. Use the returned status field to determine and display the final payment outcome to the consumer.
  3. Additionally, webhooks are triggered to notify you of the payment result. This ensures you receive the outcome even if the consumer closes their browser or fails to return to your website.

APP_NOTIFICATION

  1. The payment charge will remain in the AUTHENTICATION_PENDINGstate until the consumer confirms the payment.
  2. Webhooks are sent to inform you of the payment outcome.
  3. Alternatively, check the payment status by making a GET /v1/payment-charges/{paymentChargeId}. Use the Statusthat you received to display the payment outcome to the consumer.

Payment instrument

A PASSTHROUGH_WALLET instrument will be created for GoPay, with no additional data provided.

Request

GET /v1/payment-instruments/{instrument-id}

Response

{
    "id": "instr_Asu0ig2PXXZSiNrhY44A5",
    "type": "PASSTHROUGH_WALLET"
}

Sandbox testing