Create Cashier
Request URL
| method | url |
|---|---|
| POST | /api/checkout/payment/create |
Headers
| Header Parameter | Description |
|---|---|
| timestamp | Request timestamp |
| nonce | Random value |
| country | PK |
| appCode | Application ID |
Request Parameters
| Field | Type | Required | Length | Description |
|---|---|---|---|---|
| merchantOrderNo | String | yes | 32 | Merchant order number |
| paymentType | Int | no | Payment method. When the transaction amount is ≤ 100,000, used to specify ep or jz. 303: easypaisa, 304: JazzCash | |
| paymentTypeList | String | no | Allowed to send multiple payment methods separated by commas: 303, 304 | |
| idCardNumber | String | no | 13 | Customer ID card number, (It is not required. If filled in, it must be a 13-digit pure number.) |
| amount | String | yes | 20 | Amount, positive integer |
| phone | String | no | 10/11 | Phone number (10 digits starting with 3 / 11 digits starting with 03) |
| String | no | 50 | User email | |
| callbackUrl | String | no | 200 | Callback URL (If not transmitted, the callback URL configured in the merchant backend will be used.) |
| sign | String | yes | Signature |
{ "merchantOrderNo": "ceshi-test", "paymentType" : 303, "amount": 100, "phone": "3111111111", "email" : "213@123.com", "callbackUrl": "https://www.callbackexample.com", "sign" : "YOUR_SIGN"}Response Parameters
| Parameter | Type | Required | Length | Description |
|---|---|---|---|---|
| merchantOrderNo | String | yes | 32 | Merchant order number |
| tradeNo | String | yes | Platform order number | |
| amount | String | yes | Order transaction amount | |
| status | Int | yes | Collection status: 0 = processing, 3 = failed | |
| checkoutLink | String | no | Checkout page URL | |
| expirationTime | String | no | Checkout page expiration time | |
| errorMsg | String | no | Error message, returned when failed |
{ "msg": "success", "traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610299", "code": 200, "data": { "amount": "1000.00", "tradeNo": "TS2501010001PK0000000000000000", "expirationTime": "2025-01-01 00:00:00", "checkoutLink": "https://pk-payin.teemopay.com/#/?tradeNo=TS2501010001PK0000000000000000", "merchantOrderNo": "OrderNoExample", "status": 0 }}