Skip to main content
Version: 2.0.x

Payment Request

Request

API URL: /merchant/v2/{GUID}/payment

Note

{GUID} Obtained from the merchant backend (API Docking -> GUID)

✅ Required ⭕ Optional ❌ Not used

HeaderContentDescription
Content-Typetext/plain
X-Transaction-Signature{transaction_signature}Please refer to Transaction Signature
ParamTypeRequiredSignatureDescription
user_idStringMerchant identification
order_idStringPayment order Id of merchant system. The order id should be unique.
amountStringTransaction amount (Support up to 6 decimal places)
currencyStringPlease refer to Support Channel
channelStringPlease refer to Support Channel
timestampIntegerRequest timestamp (10 digits), If the time difference is allowed to be 5 seconds, it will fail.
detailsObjectDetails object depends on channel
callback_urlURLThe url to receive callback request from PTS when transaction complete.
redirect_urlURLWhen the payment process finished, the client will be redirected to this URL.
error_urlURLWhen the payment process failed, the client will be redirected to this URL.
remarkStringRemark
signStringSignature string. Please refer to Data Signature and Verification

Response

There are three types of payment response methods.

tip

You should notify PTS customer service to configure this for you to match actual usage situation.

Redirect

Return a javascript code with redirect_url, the user will be redirected to actual payment webpage automatically.

HTML

Return a html input form to user with automatically submit javascript. You should forward entire response content to user and make sure html and javascript workable.

JSON

Return request result in JSON format (when response code=1000)**

ParamTypeRequiredSignDescription
user_idStringMerchant identification
order_idStringPayment order Id of merchant system. The order id should be unique.
transaction_idStringPTS transaction id
channelStringPlease refer to Support Channel
submit_currencyStringSubmit currency
submit_amountFloatSubmit amount (Support up to 6 decimal places)
accept_currencyStringThe currency real paid
accept_amountFloatPaid amount of accept currency (Support up to 6 decimal places)
exchange_rateFloatExchange rate
pay_urlURLThe webpage which to pay the amount
wallet_addressStringCrypto exclusive, if need, please inform customer service staff
expired_atIntegerCrypto exclusive, if need, please inform customer service staff
qr_codeStringQR code for payment (QRPH, INSTAPAY channels only)
signStringSignature string. Please refer to Data Signature and Verification

Response Example