API Reference

Payment Simulation (Staging Only)

You can simulate payments in staging using several methods. Depending on your integration flow, you may either:

  1. Use the Payper Page
  2. Use the Payment API

Pay with Payper Page

These are some payment methods that can be simulated in staging

Bank Transfer

  1. Open your browser’s Developer Tools (Inspect → Network tab).
  2. Trigger the api/v1/payper-api/payment-request/payment-method/choose API request. In the response, look for data.payment_details.invoice_url
  1. Copy the invoice_url and open it in your browser. example link

Select any bank then click 'Select Payment Method' button

Click 'Pay Now'

Credit Card

With OTP (3DS Page)

  • Number: 4000 0000 0000 1091
  • Expiry: 12 / 30
  • CVV: 123
  • OTP: 1234

Without OTP

  • Number: 5200 0000 0000 1005
  • Expiry: 12 / 30
  • CVV: 123

E-Wallet (OVO)

  • Enter any valid mobile number.
  • Continue checkout normally.
  • The transaction will be marked PAID automatically within a few minutes in staging.

Pay with Payment API

If you use Payment Request API, you can hit this API to set the payment status to PAID

curl --location https://open-api.stag-v2.paper.id/api/v1/payment/simulation \
--header client_id: xx \
--header client_secret: yy \
--header Content-Type: application/json \
--data {
  "change_status_to": "PAID",
  "ref_id": "REF-XXXX"
}
`