跳转到内容

收银台创建

请求地址

methodurl
POST/api/checkout/payment/create

头部信息(header)

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

请求参数

字段类型必需长度描述
merchantOrderNoString32商户订单号
paymentTypeInt支付方式 (303:easypaisa, 304:JazzCash)
paymentTypeListString可以传输多个支付方式以逗号隔开:303,304
idCardNumberString13客户身份证ID (非必填,如若填写,需要保证13位纯数字)
amountString20金额 正整数
phoneString10/11手机号(3开头10位/03开头11位)
emailString50用户邮箱
callbackUrlString200代收回调地址 (若不传递,取商户后台配置的回调地址)
signString签名
请求示例
{
"merchantOrderNo": "ceshi-test",
"paymentType" : 303,
"amount": 100,
"phone": "3111111111",
"email" : "213@123.com",
"callbackUrl": "https://www.callbackexample.com",
"sign" : "YOUR_SIGN"
}

返回参数

参数类型必需长度描述
merchantOrderNoString32商户订单号
tradeNoString平台订单号
amountString订单交易金额
statusInt代收状态,0:受理中 3-失败
checkoutLinkString收银台地址
expirationTimeString收银台地址过期时间
errorMsgStringno错误信息,失败时返回
返回示例
{
"code": 200,
"data": {
"merchantOrderNo": "ceshi-test",
"tradeNo": "TS2509080002PKexample754",
"amount": "100",
"status": 0,
"checkoutLink": "https://test-pk-payin.teemopay.com/#/?tradeNo=TS2509080002PKexample754",
"expirationTime": "2025-09-17 13:53:45.959",
"errorMsg": null
},
"msg": "success",
"traceId": "1e7142b1c2cf47479ccfdbb1ecba5242.94.17579264259380029"
}