Testing
Testing Endpoint
https://apitest.nihaopay.comWe have two environments for our API: Testing and Production. These two environments and their endpoints are identical, with the exception that no real money is transferred in the Testing environment. You can use the Testing endpoints as substitutes for the Production endpoints during integration.
For example, transactions in the Testing environment would be: https://apitest.nihaopay.com/v1.2/transactions
To access the TMS for transactions processed in the testing environment, please use the Testing TMS.
While using the Testing environment, bank issued cards cannot be used. We provide test credentials for you to use to simulate transactions.
**To start testing, apply for a test account [here](https://www.nihaopay.com/apply)**UnionPay Test Cards
While using the Testing environment, bank issued cards will not work. We provide Test Cards below for you to use to simulate transactions.
UnionPay Credit Card 1
| Card Number | 6250 9470 0000 0014 |
| CVV | 123 |
| EXP | 12/2033 |
| Phone # | 852-11112222 |
| Verification Code | 111111 |
UnionPay Debit Card
| Card Number | 6226 0900 0000 0048 |
| PIN | 123456 |
| Phone # | 1810000000 |
| Verification Code | 111111 |
Alipay Test Accounts
We do not provide Alipay test accounts; however, you may use your real Alipay account to simulate transactions. If the payment is successful, please call Refund to get your money back.
WechatPay Test Info
We do not provide Wechat Test accounts; however, you may use your real Wechat account to simulate transactions. If the payment is successful, please call Refund to get your money back.
PayPal Test Account
| Account | sb-s47aho8657191@personal.example.com |
| Login Password | J^Fby/5@ |
PayPal ACDC Test Card
The following card details are provided in the NihaoPay PayPal ACDC merchant guide. Use them only in the NihaoPay/PayPal testing environment; do not use them in production.
| Card Number | 4111 1111 1111 1111 |
| EXP | 12/35 |
| CVV | 123 |
PayPal's current sandbox card testing guide lists other static test card numbers and a card generator. If this NihaoPay ACDC test card is not accepted in your sandbox setup, use a test card from PayPal's guide.
