文档
测试

订单支付

POST
http://119.29.162.214:8081/index.php?m=user&c=PayApi&a=select_pay_method&_ajax=1

请求参数

参数名
类型
描述
必填
pay_id
int
支付宝:2;微信:1
必填
pay_mark
string
支付类型:wechat:微信;alipay:支付宝
必填
unified_id
int
订单id
必填
unified_number
int
订单编号
必填
transaction_type
int
2
必填
users_id
int
下单用户
必填

响应参数

参数名
类型
描述
必填
url_qrcode
string
微信是扫二维码支付需要拼接上https://www.yasubit.com
必填

说明 / 示例

支付宝: { "code": 1, "msg": "订单支付中", "data": "", "url": "https://www.alipay.com/cooperate/gateway.do?_input_charset=utf-8&agent=C4335994340215837114&logistics_fee=0&logistics_payment=BUYER_PAY_AFTER_RECEIVE&logistics_type=EXPRESS&notify_url=https%3A%2F%2Fwww.yasubit.com%2Findex.php%3Ftransaction_type%3D2%26is_ailpay_notify%3D1&out_trade_no=20221110166806362099&partner=2088141124043745&payment_type=1&price=10.00&quantity=1&return_url=https%3A%2F%2Fwww.yasubit.com%2Fuser%2FPay%2Falipay_return%2Ftransaction_type%2F2%2Fis_ailpay_notify%2F2.html&seller_email=huangkun%40zhihuilin.net&service=create_direct_pay_by_user&subject=%E6%94%AF%E4%BB%98%E8%AE%A2%E5%8D%95%E5%8F%B7%3A20221110166806362099&sign=b6ba035ec164e47cb6995a3213b3d573&sign_type=MD5", "wait": 1, "target": "_self" } 微信: { "code": 1, "msg": "订单支付中", "data": { "url_qrcode": "/user/PayApi/pay_wechat_png/unified_number/20221110166806362099/transaction_type/2.html" }, "url": "/user/PayApi/select_pay_method.html", "wait": 1, "target": "_self" }