Complete refund logic

Update Time:2025.02.18

WeChat Pay provides two refund APIs, it is strongly recommanded that institutions integrate the complete refund logic to avoid any complaints from merchants or consumers.

Retry logic when balance is not enough
Confirm the refund status by query
Avoid repeated refund

Business scenario

Each mch_id (an institution's merchant ID or direct-connected merchant ID) has two available fund pools: CNY pool and settlement currency pool. Users of WeChat Cross-Border Pay are mainly Chinese users with a Chinese Mainland ID card, so transaction funds on the "T" day are stored as CNY in the CNY pool.

On the "T+1" day, all funds in the CNY pool will be exchanged to foreign currency funds for settlement and are stored in the settlement currency pool. This operation will be performed every day and is not affected by the total transaction amount on the "T" day. Once the total funds in the settlement currency pool reaches up to 800 USD, WeChat Pay will initiate a payment to the recipient account of the institution or direct-connected merchant.

As refund requires CNY, only funds in the CNY pool can be used for the refund. Therefore, a refund can be initiated only if the institution or direct-connected merchant has new transactions every day.

Solution

If a refund request returns with NOT ENOUGH, it means that there’s insufficient balance in the current account. In this case, a retry is recommended after a period of time. The retry interval needs to be determined based on the daily transaction amount and current refund amount.

For the institution, the API will be provided for a sub-merchant after secondary encapsulation, so the retry logic is recommended to be encapsulated on the institution layer. In this case, after the sub-merchant initiates a refund request, the institution will perform retries.

 

About  WeChat  Pay

Powered By Tencent & Tenpay Copyright©

2005-2025 Tenpay All Rights Reserved.

Contact Us
Wechat Pay Global

WeChat Pay Global

Contact Us

Customer Service Tel

+86 571 95017

9:00-18:00 Monday-Friday GMT+8

Business Development

wxpayglobal@tencent.com

Developer Support

wepayTS@tencent.com

Wechat Pay Global

About Tenpay
Powered By Tencent & Tenpay Copyright© 2005-2025 Tenpay All Rights Reserved.