Test Cards
Moyasar provides a sandbox environment for testing Apple Pay payments without the need to have a live account or use real card numbers. This allows you to test your integration and ensure that everything is working correctly before going live with actual payments.
Unlike card payments where you enter different cards to simulate the result, testing Apple Pay is based on the sent amount to Moyasar API. Different amounts will result into different results.
Test Amounts
Amount (Minor Unit) | Amount (SAR) | Status | Message | Response Code |
---|---|---|---|---|
20000 to 30000 | 200.00 to 300.00 | paid | APPROVED | 00 |
100000 to 110000 | 1000.00 to 1100.00 | failed | UNSPECIFIED FAILURE | 99 |
110100 to 120000 | 1101.00 to 1200.00 | failed | INSUFFICIENT FUNDS | 51 |
120100 to 130000 | 1201.00 to 1300.00 | failed | DECLINED: LOST CARD | 41 |
130100 to 140000 | 1301.00 to 1400.00 | failed | DECLINED | 05 |
140100 to 150000 | 1401.00 to 1500.00 | failed | DECLINED: EXPIRED CARD | 54 |
150100 to 160000 | 1501.00 to 1600.00 | failed | DECLINED: EXCEEDS WITHDRAWAL LIMIT | 61 |
160100 to 170000 | 1601.00 to 1700.00 | failed | DECLINED: STOLEN CARD | 43 |
note
Moyasar accepts payment amount in the minor current unit (e.g. cents), and the test environment uses this amount to return different results.
tip
Using any other amount range than the stated above will result in the payment failing.