Payment Request
Request
API URL: /merchant/v2/{GUID}/payment
Note
{GUID} Obtained from the merchant backend (API Docking -> GUID)
✅ Required ⭕ Optional ❌ Not used
Header | Content | Description |
---|---|---|
Content-Type | text/plain | |
X-Transaction-Signature | {transaction_signature} | Please refer to Transaction Signature |
Param | Type | Required | Sign | Description |
---|
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
)**
Param | Type | Required | Sign | Description |
---|
Response Example