Payjn(IDN) - Interface doc
  1. Collection
Payjn(IDN) - Interface doc
  • Integration Guide
  • Signature Rules
  • Attachment Code Table
  • Collection
    • Initiate Collection (API)
      POST
    • Initiate Collection (H5 Cashier)
      POST
    • Query Collection Order
      POST
    • Query Available Payment Methods
      POST
  • Payout
    • Initiate Payout
      POST
    • Query Payout Order
      POST
  • Account
    • Query account balance
      POST
  • Callback Notification
    • Collection callback notification
    • Payout callback notification
  1. Collection

Initiate Collection (H5 Cashier)

POST
/api-pay/collection/order/create-h5
1.
API: On the merchant's own cashier page, available payment methods are displayed to the user, allowing the user to complete the payment directly on the merchant's cashier page.
2.
H5 Cashier: Compared to the API, its main advantage is that it eliminates the need for the merchant to develop a payment page. Payjn provides a unified payment page, making it easier for merchants to guide users to complete the payment.
3.
Both H5 Cashier and API order placement methods use exactly the same order status query interface and asynchronous order success notification interface (merchantNotifyUrl). Merchants can choose according to their actual needs.

Request

Header Params

Body Params application/json

Example
{
    "merchantCode": "258251",
    "paymentMethodCode": "QRIS",
    "merchantOrderId": "P20250612745952599ZU",
    "amount": 50000,
    "merchantNotifyUrl": "https://merchant-api.com/callback",
    "customer": {
        "name": "Citra Astutii",
        "phone": "08126788314",
        "email": "CitraAstuti43@gmail.com"
    }
}

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST '/api-pay/collection/order/create-h5' \
--header 'sign: g4+vivqw0XRuib5vl3PdMnFP6Zb15mo+D2SuGROU9RS0/BGh8HvRcNunIjOieyrqWKGj8mAj9ehTPwtBkSI6YDk4bLRrU1eVmj6BR69YN57bBFAJ1Ic6CurzmuX/eWgHt7paSotUsWcgGeTM4tnXhxmQ6a2Gs578/w+ZWW12ZBDDMm8ajzOMR5VIZKqD6zmMKxGxcAjM2ESLNPspEFdxYf7VdSvTiPaixHZ5uomlaODiX4SlslHcpfIvq4RI+Z0ITo9cpyXQM9ujSMQiQUbvqehAMKRolBsJOU/eON1FZi2bv6dRuB0zP2SQvM1vX3CcMSsyNWiFkZvXamhugTd83g==' \
--header 'Content-Type: application/json' \
--data-raw '{
    "merchantCode": "258251",
    "paymentMethodCode": "QRIS",
    "merchantOrderId": "P20250612745952599ZU",
    "amount": 50000,
    "merchantNotifyUrl": "https://merchant-api.com/callback",
    "customer": {
        "name": "Citra Astutii",
        "phone": "08126788314",
        "email": "CitraAstuti43@gmail.com"
    }
}'

Responses

🟢200成功
application/json
Body

Example
{
    "code": 200,
    "msg": "success",
    "data": {
        "merchantCode": "258251",
        "countryCode": "IDN",
        "platformOrderId": "C2582511751104335054607",
        "merchantOrderId": "P20250612745952599ZU",
        "amount": "50000.00",
        "status": "PROCESSING",
        "paymentMethodCode": "QRIS",
        "paymentInfo": {
            "content": "https://cashier.payjn.com/collect/idn/qris/C2582511751104335054607",
            "type": "url"
        },
        "returnUrl": "",
        "remark": "",
        "transFeeRate": "1.60",
        "transFee": "0.00",
        "totalTransFee": "800.00",
        "desc": "",
        "createTime": "2025-06-28 16:52:15"
    }
}
Modified at 2025-06-30 03:19:31
Previous
Initiate Collection (API)
Next
Query Collection Order