|
|
@ -84,7 +84,7 @@
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} 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} 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
|
|
|
|
* @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} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} 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} 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
|
|
|
|
* @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} channel Payment channel
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay.
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay.
|
|
|
|
*
|
|
|
|
*
|
|
|
@ -239,7 +239,7 @@
|
|
|
|
* @apiSuccess {String} channel Payment Channel
|
|
|
|
* @apiSuccess {String} channel Payment Channel
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
* @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_FAIL:Payment failed</li>
|
|
|
|
* <li>PAY_SUCCESS:Payment succeeded</li>
|
|
|
|
* <li>PAY_SUCCESS:Payment succeeded</li>
|
|
|
|
* </ul>
|
|
|
|
* </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 {String} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {int} total_fee Order amount, which uses the base unit of current currency
|
|
|
|
* @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.)
|
|
|
|
* @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} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} 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} 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>
|
|
|
|
* <li>Full_REFUND: Full refunded</li>
|
|
|
|
* </ul>
|
|
|
|
* </ul>
|
|
|
|
* Use the same order id to call create order API can renew the order. PAYING, PAY_SUCCESS orders cannot be renewed.
|
|
|
|
* 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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} channel_order_id PayChannel(Alipay、Wechat) Transaction Trade No
|
|
|
|
* @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
|
|
|
|
* @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} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
* @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
|
|
|
|
* @api {PUT} /api/v1.0/gateway/partners/{partner_code}/microapp_orders/{order_id} Create Miniprogram Order
|
|
|
|
* @apiName microapp
|
|
|
|
* @apiName microapp
|
|
|
|
* @apiDescription
|
|
|
|
* @apiDescription
|
|
|
|
Use for wechat Payment in miniprogram. After create order, returned and redirect param.
|
|
|
|
Use for call Payment in Wechat/Alipay miniprogram. After create order, returned and redirect param.
|
|
|
|
* wechat Channel Only.<br> * <br>
|
|
|
|
* * <br>
|
|
|
|
* <a href="https://www.royalpay.com.au/downloads/MiniProgram_WechatPay.pdf"> MiniProgram_WechatPay doc</a>
|
|
|
|
* <a href="https://www.royalpay.com.au/downloads/MiniProgram_WechatPay.pdf"> MiniProgram_WechatPay doc</a>
|
|
|
|
* <img src="img/microapp_en.png">
|
|
|
|
* <img src="img/microapp_en.png">
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
* @apiVersion 1.0.0
|
|
|
@ -756,17 +756,18 @@
|
|
|
|
* @apiParam (JSON) {String} description Required, Order description
|
|
|
|
* @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) {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=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} 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} operator Note for the operator who created this order.
|
|
|
|
* @apiParam (JSON) {String} appid wechat app app_id
|
|
|
|
* @apiParam (JSON) {String} appid Wechat channel required, miniprogram app_id
|
|
|
|
* @apiParam (JSON) {String} customer_id wechat app open_id
|
|
|
|
* @apiParam (JSON) {String} customer_id wechat miniprogram open_id or alipay miniprogram userid
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* @apiSuccess {String} return_code Execution result
|
|
|
|
* @apiSuccess {String} return_code Execution result
|
|
|
|
* @apiSuccess {String} result_code SUCCESS means order created successfully, EXISTS means order has already existed.
|
|
|
|
* @apiSuccess {String} result_code SUCCESS means order created successfully, EXISTS means order has already existed.
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
* @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)
|
|
|
|
* @apiSuccess {String} sdk_params The required parameters for payment.(Json String)
|
|
|
@ -805,7 +806,7 @@
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
* @apiSuccess {String} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} pay_url Payment page in RoyalPay. Can only be accessed through WeChat
|
|
|
|
* @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} partner_code Partner code
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} full_name Partner's full company name when registered
|
|
|
|
* @apiSuccess {String} partner_name Partner's name
|
|
|
|
* @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} partner_order_id Partner order id
|
|
|
|
* @apiSuccess {String} sdk_params param string for calling SDK
|
|
|
|
* @apiSuccess {String} sdk_params param string for calling SDK
|
|
|
|
*
|
|
|
|
*
|
|
|
|