跳转到内容

收银台创建

请求地址

methodurl
POST/api/checkout/payment/create

头部信息(header)

header 参数入参参数描述
timestamp请求时间戳
nonce随机值
countryPK
app_codeapp编号

请求参数

字段类型必需长度描述
merchantOrderNoStringyes32商户订单号
paymentTypeIntno支付方式,当前交易金额小于等于10w时,用于指定ep或jz.303:easypaisa,304:JazzCash
paymentTypeListStringno可以传输多个支付方式以逗号隔开:301,303
idCardNumberStringno13客户身份证ID 13位整数
amountStringyes20金额 正整数
phoneStringno10/11手机号(3开头10位/03开头11位)
emailStringno50用户邮箱
callbackUrlStringno200回调地址
signStringyes签名
请求示例
{
"merchantOrderNo": "OrderNoExample",
"amount": "1000",
"callbackUrl": "https://www.callbackexample.com",
"sign": "YOUR_SIGN"
}

返回参数

参数类型必需长度描述
merchantOrderNoStringyes32商户订单号
tradeNoStringyes平台订单号
amountStringyes订单交易金额
statusIntyes代收状态,0:受理中 3-失败
checkoutLinkStringno收银台地址
expirationTimeStringno收银台地址过期时间
errorMsgStringno错误信息,失败时返回
返回示例
{
"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
}
}