Testing
WeChat Pay has no sandbox environment.
The test capabilities are limited on Pre-Production see below. Test on Pre-production when test are succesfull. We advise you to do a penny test on production to a end to end test in all supported currencies.
Pre-Production test capabilities
- Tests can be done only in USD.
- Desktop/Mobile integrations can be tested
- Test until status CAPTURED
- Can’t test refunds
Countries and currencies:
The following countries and currencies are supported:
Currency Code |
Currency |
Decimals |
Countries |
---|---|---|---|
USD | United States Dollar | 2 | All countries |
Positive Case
Below are the positive test case input definitions with the expected results in the last column.
Countries | Currency code | Payment Product Id | Amount | Payment Status Id |
All countries | USD | 863 | 50 | CAPTURED |
Negative case
For testing negative payment flow, please cancel the payment after redirect or leave the 2 hour session open, the resulting status of the payment will remain REDIRECTED.
Countries | Currency code | Payment Product Id | Amount | Payment Status Id |
All countries | CNY | 863 | 50 | ERROR |
Refunds
Refunds can be only done in production environment.
Payment test steps
MyHostedCheckout
Next Additional information