Primer Sandbox Processor
Primer provides a Sandbox Processor that can be used in the Sandbox environment to make test payments and validate your integration.
This processor comes with:
- a set of test card numbers to trigger various scenarios
- a set of mocked payment methods to create your first payments on the checkout
Keep in mind:
- For PCI-compliance reasons, only test card numbers are allowed in Sandbox. A payment will fail if a non-test card number is used.
- No error will be raised in production for using a test card number
Test card payments
For test card payments, you can use the following test cards to simulate scenarios:
Successful authorization
Use the following test cards to simulate a successful authorization.
Card Network | Card Number | CVV | Expiry date | Account Funding Type |
---|---|---|---|---|
Visa | 4111 1111 1111 1111 | Any 3 digit number | Any future expiry date | Debit |
Visa | 4242 4242 4242 4242 | Any 3 digit number | Any future expiry date | Credit |
Mastercard | 5252 5252 5252 5258 | Any 3 digit number | Any future expiry date | Debit |
Mastercard | 5555 5555 5555 4444 | Any 3 digit number | Any future expiry date | Credit |
Visa / Cartes Bancaires | 4035 5000 0000 0000 | Any 3 digit number | Any future expiry date | |
Mastercard / Cartes Bancaires | 5132 0000 0000 0000 | Any 3 digit number | Any future expiry date | |
Cartes Bancaires | 4970 0000 0000 0008 | Any 3 digit number | Any future expiry date |
Failed and declined authorization
Use the following test cards to simulate a failed or declined authorization.
Scenario | Card Network | Card Number |
---|---|---|
Generic decline | Visa | 4000 0000 0000 0002 |
Generic decline | Mastercard | 5100 0000 0000 0008 |
Generic fail | Visa | 4000 0000 0000 0010 |
Generic fail | Mastercard | 5100 0000 0000 0016 |
Test mocked payment methods
The Primer Sandbox Processor bundles a mocked version of PayPal, Sofort and Klarna.
For each of these payment methods, you can trigger the desired outcome of the “Authorization” using the Drop-In Checkout.


Testing PM Cards Web UI