POST payment/pay
支付订单(测试支付接口,正式环境弃用)
Request Information
URI Parameters
None.
Body Parameters
ApiCoreTradeThirdPartyRequestName | Description | Type | Additional information |
---|---|---|---|
order_id | integer |
Required |
|
payment_type_id | integer |
Required |
|
wechat_type_id | integer |
None. |
|
amount | decimal number |
None. |
|
trade_type_id | integer |
Required |
|
note | string |
None. |
|
attach | string |
None. |
|
to_user_id | integer |
None. |
|
client_id | integer |
None. |
|
app_id | integer |
None. |
|
date_frozen_to | string |
None. |
|
trade_line | Collection of TradeLineViewModel |
None. |
|
trade_promotion | TradePromotionViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "order_id": 1, "payment_type_id": 2, "wechat_type_id": 3, "amount": 4.0, "trade_type_id": 5, "note": "sample string 6", "attach": "sample string 7", "to_user_id": 1, "client_id": 1, "app_id": 1, "date_frozen_to": "sample string 8", "trade_line": [ { "product_id": 1, "product_name": "sample string 2", "price": 3.0, "quantity": 4, "discount_amount": 5.0 }, { "product_id": 1, "product_name": "sample string 2", "price": 3.0, "quantity": 4, "discount_amount": 5.0 } ], "trade_promotion": { "promotion_amount": 1.0, "promotion_note": "sample string 2" } }
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
支付订单(测试支付接口,正式环境弃用)
BaseResponseName | Description | Type | Additional information |
---|---|---|---|
code | integer |
None. |
|
message | string |
None. |
|
success | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{ "code": 1, "message": "sample string 2", "success": true }