


Recharge-free vouchers and recharge-free instant discounts developed by WeChat
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.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.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.
(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.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.
(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
(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小 pigcms (pigcms) WeChat marketing system V8.52 Pinhaohao Mall secondary development special edition free download WeChat voting source codeThe 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!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Zend Studio 13.0.1
Powerful PHP integrated development environment

WebStorm Mac version
Useful JavaScript development tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

Safe Exam Browser
Safe Exam Browser is a secure browser environment for taking online exams securely. This software turns any computer into a secure workstation. It controls access to any utility and prevents students from using unauthorized resources.

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
