Skip to main content

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)StatusMessageResponse Code
20000 to 30000200.00 to 300.00paidAPPROVED00
100000 to 1100001000.00 to 1100.00failedUNSPECIFIED FAILURE99
110100 to 1200001101.00 to 1200.00failedINSUFFICIENT FUNDS51
120100 to 1300001201.00 to 1300.00failedDECLINED: LOST CARD41
130100 to 1400001301.00 to 1400.00failedDECLINED05
140100 to 1500001401.00 to 1500.00failedDECLINED: EXPIRED CARD54
150100 to 1600001501.00 to 1600.00failedDECLINED: EXCEEDS WITHDRAWAL LIMIT61
160100 to 1700001601.00 to 1700.00failedDECLINED: STOLEN CARD43
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.