cyzf

cyzf


创建订单接口

简要描述
  • 商城支付订单创建
请求URL
  • http://pay.somutech.net/ordercreate
请求方式
  • POST
参数
参数名 支付宝必选 微信必选 类型 说明
price string 价格[元]
title string 标题
merchant_id int 商户id
pay_type string 支付类型 alipay:支付宝 wechat:微信
pay_mothed string 支付渠道<br/>pay:当面付(付款码)和支付宝预授权和新当面资金授权<br/>apppay:App支付和周期扣款<br/>weppay:手机网站支付<br/> pagepay:电脑网站支付<br/> smilepay:刷脸付<br/><br/>miniapp:微信小程序支付<br/>8:微信公众号支付<br/>qrcode:微信条码支付<br/>qrcode: 付款码支付<br/>jsapi: JSAPI支付<br/>miniapp: 小程序支付<br/>native: Native支付<br/>app: App支付<br/>face: 刷脸支付
desc string 描述
callback_succ string 成功回调
callback_fail string 失败回调
callback_notify string 通知回调
返回示例
{
    &quot;code&quot;: 200,
    &quot;msg&quot;: &quot;success&quot;,
    &quot;data&quot;: {
        &quot;merchant_id&quot;: &quot;76&quot;,
        &quot;order_title&quot;: &quot;安踏永不止步&quot;,
        &quot;out_order_no&quot;: &quot;c40b3000-0403-11ed-9d83-876e76ee8c57&quot;,
        &quot;amount&quot;: &quot;0.01&quot;,
        &quot;trade_no&quot;: &quot;02212207155057288100661&quot;,
        &quot;pay_type&quot;: 1,
        &quot;expire_time&quot;: 1657865092,
        &quot;create_time&quot;: 1657866171,
        &quot;pay_url&quot;: &quot;https://qr.alipay.com/bax08249mqueglsinwko5569&quot;
    }

}
返回参数说明
参数名 类型 说明
merchant_id int 商户id
order_title string 订单标题
out_order_no string 商家订单号
amount string 价格
trade_no string 支付订单号
pay_type string alipay:支付宝 wechat:微信
expire_time string 过期时间
create_time string 创建时间
pay_url string 支付链接

页面列表

ITEM_HTML