# Testing

Our test mode allows you to simulate transactions with various [payment providers](https://docs.payrexx.com/merchant/english/account/payment-providers).

## Preparation

Before you can start testing, you need a verified Payrexx account and at least one configured [payment provider](https://docs.payrexx.com/merchant/english/account/payment-providers).

* [Sign up](https://signup.payrexx.com/) for Payrexx (the trial subscription is sufficient for testing purposes) or [log in](https://login.payrexx.com/) to your existing Payrexx account.
* Complete the [account verification](https://docs.payrexx.com/merchant/english/the-first-steps/account-verification) process and wait for the confirmation of successful verification.
* Set up either [Payrexx Pay](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay), [Payrexx Pay Plus](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay), or one of the [external payment providers](https://login.payrexx.com/).
* Navigate to **Payment providers** and click on "Configure" for the desired payment provider:

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FOBvH70vgJPg6jPAhChrM%2Fimage.png?alt=media&#x26;token=72902208-5aab-4d43-bd17-117ad58220ba" alt=""><figcaption><p>Configuration of the Payrexx Pay payment provider</p></figcaption></figure></div>

Change the value in the "Mode" field from "Live" to "Test" and save your changes:

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FboyUsSqUtHLN8nkytCQC%2Fimage.png?alt=media&#x26;token=4f829c64-b523-45f1-8e0c-49c86db89780" alt="" width="560"><figcaption><p>Activating test mode in Payrexx Pay</p></figcaption></figure></div>

## Selection of the Payrexx Tool

The easiest way to test is to use the [terminal](https://docs.payrexx.com/merchant/english/account/tools/terminal). However, you can also test with any other [Payrexx tool](https://docs.payrexx.com/merchant/english/account/tools). It is best to choose the tool you use or will use most frequently.

When the payment provider is in test mode, a corresponding message will be displayed, and the payment methods will be labeled "TEST":

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FYGb5JPOcZQXXiEgakArr%2Fimage.png?alt=media&#x26;token=454aac20-5195-4941-a9bf-8174eb94a2a4" alt="" width="382"><figcaption><p>The Payrexx tool "Terminal" in test mode</p></figcaption></figure></div>

## Test Credit Cards

To perform test payments, please select one of the following test credit cards.

### Test credit cards for Payrexx Pay

<table data-header-hidden><thead><tr><th width="231.48959778085992">Number</th><th width="171">Brand</th><th width="150">CVC</th><th>Expiration Date</th></tr></thead><tbody><tr><td><strong>Number</strong></td><td><strong>Brand</strong></td><td><strong>CVC</strong></td><td><strong>Expiration Date</strong></td></tr><tr><td>4000000000000002</td><td>Visa</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>4242424242424242</td><td>Visa</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>5555555555554444</td><td>Mastercard</td><td>Any 3 digits</td><td>Any future date</td></tr></tbody></table>

{% hint style="info" %}
Please note that these credit card details will only work when [Payrexx Pay](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay) is in test mode.
{% endhint %}

In Payrexx Pay, the test mode is available for the following payment methods:

* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FHumll0Afr1Lo63n96DgL%252Fimage.png%3Falt%3Dmedia%26token%3D3f80a963-4584-4c5e-942d-408bee32fe6a&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=8e679032&#x26;sv=1" alt="" data-size="line"> [Mastercard](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/mastercard)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FIAC7mZR6OZOWWOQRHati%252Fimage.png%3Falt%3Dmedia%26token%3D85d5f529-9c56-42ee-90e5-8c0f15cf34f1&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=69de930d&#x26;sv=1" alt="" data-size="line"> [Visa](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/visa)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FaSAMkKTpqrj99qoxYJbk%252Fimage.png%3Falt%3Dmedia%26token%3D0e8c6e78-8788-47e2-b032-ad4c1af47630&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=2ed3449b&#x26;sv=1" alt="" data-size="line">  [TWINT](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/twint)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FLVgIjDrsMTOficb0o0E2%252Fcard_postfinance-pay%25402x.png%3Falt%3Dmedia%26token%3D5b14cab5-b791-4e5f-9f4f-cf1b56a9878b&#x26;width=75&#x26;dpr=4&#x26;quality=100&#x26;sign=dbe633d0&#x26;sv=1" alt="" data-size="line"> [PostFinance Pay](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/postfinance-pay)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FewzEZ2wDlJichd2DCqgs%252Fimage.png%3Falt%3Dmedia%26token%3Da766e8ad-35aa-4f77-af53-c0c1cced2276&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=4fdaaeb0&#x26;sv=1" alt="" data-size="line"> [Purchase on Invoice](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/purchase-on-invoice)

{% hint style="info" %}
The payment status of test transactions with TWINT, PostFinance Pay, and Purchase on Invoice is always "Confirmed."
{% endhint %}

### Test credit cards for Payrexx Pay Plus

<table><thead><tr><th width="222">Number</th><th width="226">Brand</th><th width="140">CVC</th><th>Expiration Date</th></tr></thead><tbody><tr><td>4242424242424242</td><td>Visa</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>4000056655665556</td><td>Visa (Debit)</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>5555555555554444</td><td>Mastercard</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>2223003122003222</td><td>Mastercard (2-series)</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>5200828282828210</td><td>Mastercard (Debit)</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>5105105105105100</td><td>Mastercard (Prepaid)</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>378282246310005</td><td>American Express</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>371449635398431</td><td>American Express</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>6011111111111117</td><td>Discover</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>6011000990139424</td><td>Discover</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>3056930009020004</td><td>Diners Club</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>36227206271667</td><td>Diners Club (14 digit card)</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>3566002020360505</td><td>JCB</td><td>Any 3 digits</td><td>Any future date</td></tr><tr><td>6200000000000005</td><td>UnionPay</td><td>Any 3 digits</td><td>Any future date</td></tr></tbody></table>

{% hint style="info" %}
Please note that these credit card details will only work when [Payrexx Pay Plus](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay) is in test mode.
{% endhint %}

In [Payrexx Pay Plus](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay), the test mode is available for the following payment methods:

* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FHumll0Afr1Lo63n96DgL%252Fimage.png%3Falt%3Dmedia%26token%3D3f80a963-4584-4c5e-942d-408bee32fe6a&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=8e679032&#x26;sv=1" alt="" data-size="line"> [Mastercard](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/mastercard)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FIAC7mZR6OZOWWOQRHati%252Fimage.png%3Falt%3Dmedia%26token%3D85d5f529-9c56-42ee-90e5-8c0f15cf34f1&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=69de930d&#x26;sv=1" alt="" data-size="line"> [Visa](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/visa)
* <img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FfJ2bSIfAyFAuKphTXA55%2Fimage.png?alt=media&#x26;token=7f9d0b3a-23cd-424a-a6bc-12afa4e04f36" alt="" data-size="line"> [Diners Club International](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/diners-club-international)
* <img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FKTGctgPnDz5LpkLxM4ta%2Fimage.png?alt=media&#x26;token=1df9b3df-c52f-4afb-851c-f9606b656af9" alt="" data-size="line"> [Discover Card](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/discover-card)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FQ4Pw15SbyF5HZmLTdeby%252Fimage.png%3Falt%3Dmedia%26token%3D7cf3e352-5a26-490a-813e-0f56b4c63651&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=5be7df50&#x26;sv=1" alt="" data-size="line"> [American Express](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/american-express)
* <img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FUYbXisdbkVwewgIHuCxZ%2Fcard_apple-pay.svg?alt=media&#x26;token=ff376d48-f095-4bd8-af05-3189f12ae60a" alt="" data-size="line"> [Apple Pay](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/apple-pay)
* <img src="https://3244062149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-543259558%2Fuploads%2FaslPSpJR7o20IpLYVPrh%2Fcard_google-pay.svg?alt=media&#x26;token=5af47904-ab64-4095-a1a9-f27719f28b13" alt="" data-size="line"> [Google Pay](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/google-pay)
* <img src="https://docs.payrexx.com/~gitbook/image?url=https%3A%2F%2F3244062149-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F-MYJhU4qriZCz_Wxs0T0-543259558%252Fuploads%252FhwFChllXfqdTZ64sg6sz%252Fimage.png%3Falt%3Dmedia%26token%3D07f340b8-4d88-46b1-8e25-592715b04489&#x26;width=60&#x26;dpr=4&#x26;quality=100&#x26;sign=70d94dd1&#x26;sv=1" alt="" data-size="line"> [Klarna](https://docs.payrexx.com/merchant/english/payment-provider/payrexx-pay/payment-methods/klarna)
* <img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FrX6FV3cEjBLwoAynIUhD%2Fimage.png?alt=media&#x26;token=e7e6200b-56f2-4c3a-978d-dea974608b1b" alt="" data-size="line"> JCB

## Refunds in Test Mode

Test payments made via credit card, TWINT, PostFinance Pay, etc., can also be refunded in test mode.

## Test Cards in the Gateway for Test Payments

When a payment provider is in test mode, the test cards will be visible in the gateway, allowing you to simulate payments. This way, you can test the payment process without having to conduct real transactions:

<div align="left"><figure><img src="https://1455115231-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYJhU4qriZCz_Wxs0T0-887967055%2Fuploads%2FIruwIzo0WQxPVmuvQ0WO%2Fimage.png?alt=media&#x26;token=f02cdd0f-9902-42b7-83e6-06ddadc317f6" alt="" width="401"><figcaption><p>The test credit card is displayed directly in the gateway.</p></figcaption></figure></div>
