> ## Documentation Index
> Fetch the complete documentation index at: https://primer.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# 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

<Warning>
  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
</Warning>

### Test card payments

For test card payments, you can use the following test cards to simulate scenarios:

Successful authorization

<br />

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 <br />
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.

<Frame caption="Testing PM Cards Web UI">
  <img src="https://mintcdn.com/primer-cc826789/kh8YlCAXTDnCrMxk/images/getting-started/testing/pm_cards_web_ui.png?fit=max&auto=format&n=kh8YlCAXTDnCrMxk&q=85&s=54f046c7aec9c61c7991768d0bbc8c5e" width="720" height="1266" data-path="images/getting-started/testing/pm_cards_web_ui.png" />

  <img src="https://mintcdn.com/primer-cc826789/kh8YlCAXTDnCrMxk/images/getting-started/testing/dummy_apm.png?fit=max&auto=format&n=kh8YlCAXTDnCrMxk&q=85&s=0fa606a6b069f3f6fbb840d360696eaf" width="360" height="340" data-path="images/getting-started/testing/dummy_apm.png" />
</Frame>
