WeChat Pay
Let clients pay by scanning a WeChat Pay QR code on your site, and close the invoice as soon as WeChat Pay confirms the payment.
Reaching the Screen
Go to Settings → Financial → Payment Gateways, open All Modules and click the WeChat Pay card: {admin}/modules/payment?module=WeChatPay
Tick Status and save to list the method on the payment step as Pay with WeChat Pay. Use Payment Gateways to order the methods clients see.
What Is on the Screen
The card holds your merchant numbers, the keys that sign and verify every message, the payment window and the shared gateway settings.
On the payment step the client clicks Show the WeChat Pay Code and scans the QR code with the WeChat app. The page continues on its own once the payment is confirmed.
WeChat Pay has no saved cards and no subscriptions. Every invoice is paid with a new code.
Before You Configure It
- A WeChat Pay merchant account on API v3 and an APPID bound to its merchant number.
- Your merchant API certificate, the APIv3 key and the WeChat Pay public key, all under Account Center → API Security in the merchant platform.
- Invoices in Chinese yuan. For any other currency, set Converting Currency to CNY.
- A site served over HTTPS. WeChat Pay accepts only an HTTPS notification address.
Fields
Saving with Status ticked checks the credentials. An empty field, an APIv3 key that is not 32 characters or an unreadable key stops the save with a message.
For commission, currency conversion, amount and country limits, see Payment Configuration. Callback URL, Success URL and Failed URL cannot be edited. Each order carries its notification address, so there is nothing to register in the merchant platform.
Tasks
Connect your merchant account
- Collect the merchant number, APPID, certificate serial, private key, APIv3 key and public key from the merchant platform.
- Open the WeChat Pay card under All Modules and tick Status.
- Fill in every field. Paste the two keys whole, including their BEGIN and END lines.
- Click Save Changes. Once the keys pass the check, the method appears on the payment step.
Run a first payment
- Place a small order in CNY as a client and choose Pay with WeChat Pay.
- Click Show the WeChat Pay Code, then scan the code in WeChat and pay.
- The page continues on its own, and the invoice is marked as paid. Refund the payment afterwards if it was only a test.
Refund a payment
- Open the invoice from Invoice Detail.
- Under Summary → Change Status, select Refunded and Refund via payment gateway. Click Update Status.
- WeChat Pay returns the order amount, and the invoice is marked as refunded.
WeChat Pay accepts up to 50 refunds per payment, at least one minute apart. Repeating the same invoice's refund does not send it twice.
Things to Watch
When one WeChat Pay order paid several invoices, only the refunded invoice's share goes back, and the shares add up exactly to the order. If the share cannot be worked out, nothing is sent and the panel says so. Refund it in your merchant platform instead, then mark the invoice Refunded with Add as expense. Version 5.0-beta.4 and earlier refund the whole order.
The invoice is marked as refunded once WeChat Pay accepts the refund. The money can reach the client later, while WeChat Pay is still processing it.
Required Privileges
Settings require Payment Gateways (MODULES_PAYMENT_SETTINGS). Invoice changes require Billing → Edit (INVOICES_OPERATION).
Related Articles
¡Gracias por sus comentarios!
El equipo de soporte está disponible las 24 horas para ayudarle con lo que no encuentre aquí.