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 NetworkCard NumberCVVExpiry dateAccount Funding Type
Visa4111 1111 1111 1111Any 3 digit numberAny future expiry dateDebit
Visa4242 4242 4242 4242Any 3 digit numberAny future expiry dateCredit
Mastercard5252 5252 5252 5258Any 3 digit numberAny future expiry dateDebit
Mastercard5555 5555 5555 4444Any 3 digit numberAny future expiry dateCredit
Visa / Cartes Bancaires4035 5000 0000 0000Any 3 digit numberAny future expiry date
Mastercard / Cartes Bancaires5132 0000 0000 0000Any 3 digit numberAny future expiry date
Cartes Bancaires4970 0000 0000 0008Any 3 digit numberAny future expiry date

Failed and declined authorization
Use the following test cards to simulate a failed or declined authorization.

ScenarioCard NetworkCard Number
Generic declineVisa4000 0000 0000 0002
Generic declineMastercard5100 0000 0000 0008
Generic failVisa4000 0000 0000 0010
Generic failMastercard5100 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