Testing
Moyasar provides a sandbox environment for testing Samsung Pay payments. 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 Samsung Pay is based on the sent amount to Moyasar API. Different amounts will result into different results.
There are no test cards for Samsung Pay. A real card must be added to an Samsung Pay Wallet to test Samsung Pay payments. Make sure to use the test environment API keys when testing Samsung Pay payments.
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 |
Moyasar accepts payment amount in the minor current unit (e.g. cents), and the test environment uses this amount to return different results.
Using any other amount range than the stated above will result in the payment failing.