文档
测试

沙箱模式测试

POST
http://localhost:13000/pay/aliPay

接口描述

需要json串 参数

请求参数

参数名
类型
描述
必填
orderId
string
示例:1234567891224
必填
amount
string
示例:50
必填
product
string
示例:1
必填
body
string
示例:1
必填

说明 / 示例

<form name="punchout_form" method="post" action="https://openapi.alipaydev.com/gateway.do?charset=utf-8&method=alipay.trade.page.pay&sign=YlZ3Nmkj8nKNJ%2FFRFLjBkdHXddgMwrOw4IPnoXfhRsjAQx2BV46vqYnAN6Y9lGUn6TXRZ9Rx3vnM%2FrLS708ZhsQtzR37uoTO1oWZGmFlJ6X8LRYNw9GOZvthfV8qXsqhgWnh%2FoHC10%2F127AL6XAhCvQR8vQLp4TLJ%2BhFUe8JFrrjmFfe0RegQkLXU0155iTwwy%2Fwu9tQQe9Rw8fd64DaBzuA82fjr1dteZE2MdoYkBwE9hv5K6V4j9%2B8duwZSeB9EREmO4UguQlfx%2FIercndxLkAgVF5t8F7YJiq9obnm1K6Cr1O8Yjw7c0gwdH888W4ZTEHTtHxKZ1L%2B1uNmxaTaA%3D%3D&return_url=https%3A%2F%2Fwww.baidu.com%2F&notify_url=https%3A%2F%2Fwww.baidu.com%2F&version=1.0&app_id=2021000117674648&sign_type=RSA2&timestamp=2021-06-18+11%3A38%3A24&alipay_sdk=alipay-sdk-java-dynamicVersionNo&format=json"> <input type="hidden" name="biz_content" value="{&quot;out_trade_no&quot;:&quot;1234567891224&quot;,&quot;total_amount&quot;:&quot;50&quot;,&quot;subject&quot;:&quot;1&quot;,&quot;body&quot;:&quot;1&quot;,&quot;product_code&quot;:&quot;FAST_INSTANT_TRADE_PAY&quot;}"> <input type="submit" value="立即支付" style="display:none" > </form> <script>document.forms[0].submit();</script> 对接支付宝支付页面