|
|
|
@ -84,7 +84,7 @@
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
* @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. The final order id which is paid may be different from this one.
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one.
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} code_url QR Code string. Partners can create the payment QR Code according to this value.
|
|
|
|
|
* @apiSuccess {String} qrcode_img QR Code image formatted in Base64. Can be used as the src attribute on img element
|
|
|
|
@ -124,7 +124,7 @@
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
* @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 GlobalFreePay, which is also WeChat order id. The final order id which is paid may be different from this one.
|
|
|
|
|
* @apiSuccess {String} order_id Order id in GlobalFreePay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one.
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} code_url QR Code string. Partners can create the payment QR Code according to this value.
|
|
|
|
|
* @apiSuccess {String} qrcode_img QR Code image formatted in Base64. Can be used as the src attribute on img element
|
|
|
|
@ -183,7 +183,7 @@
|
|
|
|
|
* @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} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id.
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay.
|
|
|
|
|
*
|
|
|
|
@ -239,7 +239,7 @@
|
|
|
|
|
* @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. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
|
*
|
|
|
|
@ -310,7 +310,7 @@
|
|
|
|
|
* <li>PAY_FAIL:Payment failed</li>
|
|
|
|
|
* <li>PAY_SUCCESS:Payment succeeded</li>
|
|
|
|
|
* </ul>
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also WeChat order id.
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id.
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {int} total_fee Order amount, which uses the base unit of current currency
|
|
|
|
|
* @apiSuccess {int} real_fee Actual paid amount.(The same as total fee at the moment. After coupon feature is finished, this may be different.)
|
|
|
|
@ -356,7 +356,7 @@
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
* @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. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} code_url QR Code string. Partners can create the payment QR Code according to this value.
|
|
|
|
|
*
|
|
|
|
@ -390,7 +390,7 @@
|
|
|
|
|
* <li>Full_REFUND: Full refunded</li>
|
|
|
|
|
* </ul>
|
|
|
|
|
* Use the same order id to call create order API can renew the order. PAYING, PAY_SUCCESS orders cannot be renewed.
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also WeChat order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} channel_order_id PayChannel(Alipay、Wechat) Transaction Trade No
|
|
|
|
|
* @apiSuccess {int} total_fee Order amount, which uses the base unit of current currency
|
|
|
|
@ -728,7 +728,7 @@
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
* @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. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
|
*
|
|
|
|
@ -742,8 +742,8 @@
|
|
|
|
|
* @api {PUT} /api/v1.0/gateway/partners/{partner_code}/microapp_orders/{order_id} Create Miniprogram Order
|
|
|
|
|
* @apiName microapp
|
|
|
|
|
* @apiDescription
|
|
|
|
|
Use for wechat Payment in miniprogram. After create order, returned and redirect param.
|
|
|
|
|
* wechat Channel Only.<br> * <br>
|
|
|
|
|
Use for call Payment in Wechat/Alipay miniprogram. After create order, returned and redirect param.
|
|
|
|
|
* * <br>
|
|
|
|
|
* <a href="https://www.royalpay.com.au/downloads/MiniProgram_WechatPay.pdf"> MiniProgram_WechatPay doc</a>
|
|
|
|
|
* <img src="img/microapp_en.png">
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
@ -756,17 +756,18 @@
|
|
|
|
|
* @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=Wechat,Alipay} channel=Wechat Payment channel. Wechat for Wechat miniprogram and Alipay for Alipay miniprogram
|
|
|
|
|
* @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.
|
|
|
|
|
* @apiParam (JSON) {String} appid wechat app app_id
|
|
|
|
|
* @apiParam (JSON) {String} customer_id wechat app open_id
|
|
|
|
|
* @apiParam (JSON) {String} appid Wechat channel required, miniprogram app_id
|
|
|
|
|
* @apiParam (JSON) {String} customer_id wechat miniprogram open_id or alipay miniprogram userid
|
|
|
|
|
*
|
|
|
|
|
* @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} 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. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
|
* @apiSuccess {String} sdk_params The required parameters for payment.(Json String)
|
|
|
|
@ -805,7 +806,7 @@
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
* @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. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
|
*
|
|
|
|
@ -852,7 +853,7 @@
|
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
|
* @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. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} order_id Order id in RoyalPay, which is also payment channel(Wechat/Alipay) order id. The final order id which is paid may be different from this one
|
|
|
|
|
* @apiSuccess {String} partner_order_id Partner order id
|
|
|
|
|
* @apiSuccess {String} sdk_params param string for calling SDK
|
|
|
|
|
*
|
|
|
|
|