支付接口
开发中POST
/api/pay-service/pay/create请求参数
Body 参数application/json
channel
string
支付渠道
0:支付宝
tradeType
string
支付环境
0:网页支付
orderSn
string
必需
outOrderSn
string
必需
subject
string
必需
totalAmount
string
必需
示例
{
"channel": "string",
"tradeType": "string",
"orderSn": "string",
"outOrderSn": "string",
"subject": "string",
"totalAmount": "string"
}
示例代码
返回响应
成功(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
code
string
必需
message
null
必需
data
object
必需
body
string
必需
requestId
string
必需
success
boolean
必需
示例
{
"code": "0",
"message": null,
"data": {
"body": "<form name=\"punchout_form\" method=\"post\" action=\"https://openapi.alipaydev.com/gateway.do?charset=UTF8&method=alipay.trade.page.pay&sign=fMwbcX0NUel6psIIS9JPrLEXH66Qm%2BsLmRGoeNyEnAHE5Vl%2BX2RX26YgvmA8SmdTFW7859Vl%2BlOtPF79RSwbE1zIxfLlE3Ew1Ek%2BF%2BQpbyxHqSV6nrC63aI8QIq1BawTk8LjqmrYgFNRvWnCwsg2jxghoMq11kC%2Bi%2BLm2BRZxxHD97hPRrpcNfBx9s%2BKbxlPHm82l5SosLzeM3d3EMuGns3kwcPfBOm0shckikk7RtMV7W%2BsCRH9LGKV7KG%2BeZt484%2Btvho08JIQ%2Br70jH%2FFtypAZGfsGI2LrBvbDcVTSLNfL7c4%2FTAD2y1lK8%2BVDv26cEMq9u%2B0XfuawBc4LNF0lg%3D%3D¬ify_url=http%3A%2F%2Fems8b7.natappfree.cc%2Fapi%2Fpay-service%2Fcallback%2Falipay&version=1.0&app_id=2021000122600170&sign_type=RSA2×tamp=2023-06-29+12%3A14%3A22&alipay_sdk=alipay-sdk-java-dynamicVersionNo&format=json\">\n<input type=\"hidden\" name=\"biz_content\" value=\"{"out_trade_no":"1674270057357307904","product_code":"FAST_INSTANT_TRADE_PAY","subject":"iPhone 14 Pro","total_amount":"6499.99"}\">\n<input type=\"submit\" value=\"立即支付\" style=\"display:none\" >\n</form>\n<script>document.forms[0].submit();</script>"
},
"requestId": "",
"success": true
}
最后修改时间: 1 年前