Collection callback notification
Request Data Format: JSONNotification Mechanism:
After receiving a notification from Payjn, please return SUCCESS
. Otherwise, Payjn will retry the notification up to 8 times. The notification intervals are: 1s, 5s, 10s, 30s, 60s, 300s, 900s, and 1800s.Variable | Type | Required | Description |
---|
Content-Type | String | Yes | Fixed: application/json;charset=utf-8 |
sign | String | Yes | Signature generated based on the response body from Payjn; use Payjn's public key to verify the received signature |
Variable | Type | Description |
---|
status | String | Order status. SUCCESS means successful. For other statuses, see "Status Code List" |
merchantCode | String(6) | Unique merchant identifier provided by Payjn |
merchantOrderId | String(50) | Merchant's internal order number, up to 50 characters, can include letters, must be unique |
platformOrderId | String(32) | Payjn order number |
paymentMethodCode | String(10) | Payment method code |
countryCode | String | Country code (IDN for Indonesia) |
amount | String(12,2) | Amount specified when creating the order, in the local currency |
paidAmount | String(12,2) | Actual amount received, in the local currency, two decimal places. May differ from order amount. Refer to amount for order amount. |
createTime | String | Creation time, format: yyyy-MM-dd HH:mm:ss |
successTime | String | Payment success time, format: yyyy-MM-dd HH:mm:ss |
Example
Asynchronous Callback NotificationStatus Code List#
Status Code | Description |
---|
SUCCESS | Payment successful |
FAILURE | Payment failed |
PROCESSING | Processing |
CANCELLED | Order cancelled |
Modified at 2025-06-30 06:31:17