|
|
@ -95,6 +95,46 @@
|
|
|
|
* @apiError (ERROR_CODE) ORDER_PAID Order has already been paid
|
|
|
|
* @apiError (ERROR_CODE) ORDER_PAID Order has already been paid
|
|
|
|
*
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* @api {PUT} /api/v1.0/gateway/partners/{partner_code}/native_orders/{order_id} Create QR Code Payment
|
|
|
|
|
|
|
|
* @apiName NativeQRCode
|
|
|
|
|
|
|
|
* @apiGroup QRCode
|
|
|
|
|
|
|
|
* @apiVersion 1.0.0
|
|
|
|
|
|
|
|
* @apiDescription
|
|
|
|
|
|
|
|
* QR Code Payment is used for webpage/application on PC. Customers use WeChat or Alipay app to scan QR Code generated when creating order and finish the payment.<br>
|
|
|
|
|
|
|
|
* <img src="img/qrcode_process_en.png"><br>
|
|
|
|
|
|
|
|
* Return value contains QR Code string, QR Ccode image and payment page address. Partners can decide how to finish the payment.
|
|
|
|
|
|
|
|
* If the currency is CNY, equivalent AUD amount shall never less than 0.01 AUD,
|
|
|
|
|
|
|
|
* otherwise user will get Invalid Amount Error from WeChat when making the payment.
|
|
|
|
|
|
|
|
* @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. Shall be unique for the same partner. If repeated, order will be recognized as an existing order.
|
|
|
|
|
|
|
|
* @apiUse Sign
|
|
|
|
|
|
|
|
* @apiParam (JSON) {String} description Required, Description of an order.
|
|
|
|
|
|
|
|
* @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,Wechat} 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} channel Payment channel
|
|
|
|
|
|
|
|
* @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} 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
|
|
|
|
|
|
|
|
* @apiSuccess {String} pay_url Payment page in GlobalFreePay
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @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/gateway/partners/{partner_code}/orders/{order_id}/pay QR Code Payment Page in RoyalPay
|
|
|
|
* @api {GET} /api/v1.0/gateway/partners/{partner_code}/orders/{order_id}/pay QR Code Payment Page in RoyalPay
|
|
|
|
* @apiName QRCodePay
|
|
|
|
* @apiName QRCodePay
|
|
|
|