跳转到内容

收银台创建

请求地址

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"
}

错误码

异常码异常信息处理方案
412Please try again later请稍后重试
414*更改对应参数
416Application not foundapp_code异常,请更改
424This payment method is not configured代收方式未配置,请联系我们配置对应代收方式
426merchant order duplicate请更换商户订单号
427The callback notification address for collection must not be empty.未配置代收回调地址,请配置代收回调地址
438Phone number is error请检查并更改手机号
441ID number must be exactly 13 digits long身份证号必须是 13 位数字
445Amount must be an integerpk的金额必须为整数
460The current payment method is unavailable.当前代收方式不可用,请更换
473Merchant joint verification error: *配置异常,请联系我们
500Business Error请联系我们
返回示例
{
"code": 426,
"data": null,
"msg": "merchant order duplicate",
"traceId": "747bbf80261844ed85b809212aab0d81.85.17422898158610298"
}