# 收银台支付

# 说明

  • 该接口需在微信浏览器里面发起支付

# 接口地址

https://open.weidoufu.com/pay/cashier (opens new window)

# 接口参数

字段名称 字段类型 必填参数 说明 (AccessKey/SecretKey)应用密钥
access_key string(32) 应用密钥的 AK,即是 AccessKey
body string(32) 商品名称 例如:QQ 会员充值
total_fee int(9) 价格单位:分
out_order_no string(32) 商户订单号(字母、数字,至少 18 位长度)
notify_url string(128) 你平台的回调地址 例如:http://www.your.com/notify_url
return_url string(128) 收银台支付成功后前台跳转地址,空的则退出当前 webview 例如:http://www.your.com/return_url
cancel_url string(128) 收银台取消支付跳转的地址 例如:http://www.your.com/cancel_url
attach string(128) 附加信息,回调时原样传回 例如:{test:'test1_params'}
sign string 签名结果(大写),详见 签名算法 (opens new window)

# 返回参数

请求成功无返回内容,如果有返回表示出错。返回为 json 格式

名称 字段类型 必有 说明
code int 1:成功   0:失败
message string 返回描述信息

成功返回:

直接跳转到收银台进行支付
最后更新于: 5/6/2023, 12:12:59 PM