|
|
@ -109,7 +109,62 @@
|
|
|
|
* @apiError (ERROR_CODE) ORDER_NOT_EXIST Order does not exist
|
|
|
|
* @apiError (ERROR_CODE) ORDER_NOT_EXIST Order does not exist
|
|
|
|
* @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner
|
|
|
|
* @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @api {PUT} /api/v1.0/h5_payment/partners/{partner_code}/orders/{order_id} Create H5 Payment(Only support Alipay)
|
|
|
|
|
|
|
|
* @apiName NewMobileH5Pay
|
|
|
|
|
|
|
|
* @apiGroup MobileH5
|
|
|
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
|
|
|
|
* @apiDescription
|
|
|
|
|
|
|
|
* <b>
|
|
|
|
|
|
|
|
* Alipay has no limit at the moment.</b><br>
|
|
|
|
|
|
|
|
* H5 Payment is used for payment in Webpage or App on mobile outside WeChat or Alipay App. The browser would redirect to a webpage from WeChat or Alipay and call the App to finish the payment.<br>
|
|
|
|
|
|
|
|
* Return value contains a payment page. Partners shall guide users to redirect to this page. Sign params are required.
|
|
|
|
|
|
|
|
* If the currency is CNY, equivalent AUD amount shall never less than 0.01AUD,
|
|
|
|
|
|
|
|
* otherwise user will get Invalid Amount Error from WeChat when making the payment.<br>
|
|
|
|
|
|
|
|
* <img src="img/h5_api_payment.jpg">
|
|
|
|
|
|
|
|
* @apiHeader Accept application/json
|
|
|
|
|
|
|
|
* @apiHeader Content-Type application/json
|
|
|
|
|
|
|
|
* @apiParam (PathVariable) {String} partner_code Required, Partner code
|
|
|
|
|
|
|
|
* @apiParam (PathVariable) {String} order_id Required, Partner order id
|
|
|
|
|
|
|
|
* @apiUse Sign
|
|
|
|
|
|
|
|
* @apiParam (JSON) {String} description Required, Order description
|
|
|
|
|
|
|
|
* @apiParam (JSON) {int} price Required, Price of the order. Use the base unit of the currency.
|
|
|
|
|
|
|
|
* @apiParam (JSON) {String=AUD,CNY} currency=AUD currency
|
|
|
|
|
|
|
|
* @apiParam (JSON) {String=Alipay} channel Payment channel, case sensitive
|
|
|
|
|
|
|
|
* @apiParam (JSON) {String} notify_url System will call the notify url if provided when the payment succeeds
|
|
|
|
|
|
|
|
* @apiParam (JSON) {String} operator Note for the operator who created this order.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @apiSuccess {String} return_code Execution result
|
|
|
|
|
|
|
|
* @apiSuccess {String} result_code SUCCESS means order created successfully, EXISTS means order has already existed.
|
|
|
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
|
|
|
* @apiSuccess {String} channel Payment channel
|
|
|
|
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also WeChat order id.
|
|
|
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @apiUse GlobalError
|
|
|
|
|
|
|
|
* @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner
|
|
|
|
|
|
|
|
* @apiError (ERROR_CODE) ORDER_PAID Order has already been paid
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @api {GET} /api/v1.0/h5_payment/partners/{partner_code}/orders/{order_id}/pay H5 Payment Page
|
|
|
|
|
|
|
|
* @apiName MobileH5Pay
|
|
|
|
|
|
|
|
* @apiDescription This page mush be called after payment order has been created.
|
|
|
|
|
|
|
|
* When jumping back to redirection URL, it is recommended to call the order query API to make sure the payment has succeeded.
|
|
|
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
|
|
|
|
* @apiGroup MobileH5
|
|
|
|
|
|
|
|
* @apiParam (PathVariable) {String} partner_code Required, Partner code
|
|
|
|
|
|
|
|
* @apiParam (PathVariable) {String} order_id Required, Partner order id. It shall have already been created
|
|
|
|
|
|
|
|
* @apiUse Sign
|
|
|
|
|
|
|
|
* @apiParam (QueryParam) {String} redirect Required, Redirect url when payment succeeded. Contain sign parameters for validation.
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @apiUse GlobalError
|
|
|
|
|
|
|
|
* @apiError (ERROR_CODE) ORDER_NOT_EXIST Order does not exist
|
|
|
|
|
|
|
|
* @apiError (ERROR_CODE) ORDER_MISMATCH Order is not belong to this partner
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* @api {PUT} /api/v1.0/jsapi_gateway/partners/{partner_code}/orders/{order_id} Create JSAPI Payment Order
|
|
|
|
* @api {PUT} /api/v1.0/jsapi_gateway/partners/{partner_code}/orders/{order_id} Create JSAPI Payment Order
|
|
|
|