Me->Wallet->Payment" on the mobile client to obtain the payment barcode; (2) Enter the order amount of 5.01 yuan at the cashier, and scan the above barcode with a code scanner (this operation is optional, If there is a prompt such as the QR code is invalid when scanning the code, you can ignore the prompt and it will not affect the test results) and complete the payment (or directly package and call the card swiping API);"/> Me->Wallet->Payment" on the mobile client to obtain the payment barcode; (2) Enter the order amount of 5.01 yuan at the cashier, and scan the above barcode with a code scanner (this operation is optional, If there is a prompt such as the QR code is invalid when scanning the code, you can ignore the prompt and it will not affect the test results) and complete the payment (or directly package and call the card swiping API);">

Home >WeChat Applet >WeChat Development >Recharge-free vouchers and recharge-free instant discounts developed by WeChat

Recharge-free vouchers and recharge-free instant discounts developed by WeChat

Y2J
Y2JOriginal
2017-05-05 09:55:382754browse

1. [1001-Optional use case-normal payment by credit card]

Test steps
(1) Go to "WeChat->Me->Wallet->Payment" on the mobile client to obtain Payment barcode;
(2) Enter the order amount of 5.01 yuan at the cashier, and scan the above barcode with a code scanner (this operation is optional. If there is a prompt such as the QR code is invalid when scanning the code, you can ignore the prompt and it will not affect the test. result), complete the payment (or directly package and call card swiping api);
(3) According to the merchant’s internal order number (out_trade_no), investigate the order api (api.mch.weixin.qq.com/ sandboxnew/pay/orderquery) to query the order status and check it with the key information of the merchant's own order

After completion

##3.2 [1002-Optional use case -Pay with credit card for refund】

3.2.1 Brief description of use case
The order amount is 5.02 yuan, use the change + 0.01 yuan free recharge voucher, the actual payment is 5.01 yuan, the refund query is upgraded.
3.2.3 Test steps
(1) Use card payment to pay for an order of 5.02 yuan;
(2) According to the merchant’s internal order number (out_trade_no), investigate the order api (api.mch.weixin. qq.com/sandboxnew/pay/orderquery) to query the order status;
(3) Call the refund api (api.mch.weixin.qq.com/sandboxnew/secapi/pay/refund) for refund;
(4) Call the refund query API (api.mch.weixin.qq.com/sandboxnew/pay/refundquery) to query the refund results.

3.3 [1003-Optional use case-official account/APP/scan code for normal payment]

3.3.1 Brief description of use case
The order amount is 5.51 yuan, of which 0.01 yuan is used as a recharge-free coupon. The actual Pay 5.50 yuan.
Check the normal payment process, and the merchant uses recharge-free vouchers for payment.

3.3.3 Test Steps

(1) Use the client to scan the code, select the product and place an order (this operation is optional. If there are prompts such as expiration of the QR code when scanning the code, you can ignore the prompts. It does not affect the test results. The cashier total_fee error occurs during payment because this sandbox order does not exist in the real WeChat payment environment. This error can be ignored). Open the WeChat payment transaction confirmation page and adjust the order api (api.mch). .weixin.qq.com/sandboxnew/pay/unifiedorder)
(2) Wait for 5 seconds to complete the payment;
(3) Call the order checking API (api.mch.weixin.qq.com/sandboxnew/pay /orderquery) to query the order status and check with the key information of the merchant's own orders.

3.4 [1004-Optional use case-official account/APP/scan code payment refund]

3.4.1 Brief description of use case
The order amount is 5.52 yuan, of which 0.01 yuan is a free recharge coupon. The actual payment was 5.51 yuan.

3.4.3 Test steps

(1) Make an order payment of 5.52 yuan;
(2) According to the merchant’s internal order number (out_trade_no), investigate the order api
(api.mch. weixin.qq.com/sandboxnew/pay/orderquery) to query and check with the key information of the merchant’s own orders;
(3) Call the refund API (api.mch.weixin.qq.com/sandboxnew/secapi /pay/refund) for refund;
(4) Call the refund query api (api.mch.weixin.qq.com/sandboxnew/pay/refundquery) to query the refund result

3.5【 1005 -Required use case-Transaction statement download】

3.5.3 Test steps

(1) Call the statement download interface to download the statement, where bill_type=ALL when downloading the total statement, download the statement When the bill transaction is successful, bill_type=SUCCESS, when the statement refund form is downloaded, bill_type=REFUND, link example: api.mch.weixin.qq.com/sandboxnew/pay/downloadbill;
(2) Check the bill return file Field, settlement amount = total order amount - recharge-free coupon amount.

##【Related recommendations】

1.

WeChat public account platform source code download

2.

小 pigcms (pigcms) WeChat marketing system V8.52 Pinhaohao Mall secondary development special edition free download

3.

WeChat voting source code

The above is the detailed content of Recharge-free vouchers and recharge-free instant discounts developed by WeChat. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn