Testing payments in the sandbox

In our sandbox you can make test payments using all available payment methods. We designed a special web interface that simulates a behavior of a payment method. It replicates a communication with a supplier as accurately as possible. You can find all necessary information and procedures in this article of how to test payments with our sandbox.

Our tip:

Please set your test credentials of payment gateway to your e-shop system and make test payments for orders in customer's point of view. Statuses of test payments should correspond to statuses of orders in your system.

You can make test payments from any domain.

If you are a new client we will provide you test credentials after registration process.

You can perform all the operations with fictitious cash within the sandbox environment. Please don’t allow your customers to access the GoPay payment gateway sandbox environment.

Please note that the test environment is limited and some payment methods can not be simulated, such as Apple Pay.

Testing payment cards

We have prepared a set of test payment cards to test your payments. The result of the payment depends on the payment's amount.

Card type PAN Issuer country code
MasterCard 5447380000000006 CZE
VISA 4444444444444448 POL
Amount ends with Example Result
*00 10,00 CZK Authorization successful - payment finished
*04 15,04 EUR Authorization failed - payment declined

GoPay tip: As a CVV / CVC code you can enter any 3 numbers, e.g. 123 and as an expiration date you can enter any date in the future, e.g. 03/28.


Testing Premium SMS

Test payments via Premium SMS requires sending SMS in a GP format.

Fictional SMS can be sent via our web interface. For more details please see below. At the point of sale a payment should be marked as paid within a few minutes after sending a test SMS.

Sending of test SMS
https://partner.sandbox.gopay.com/gp-gateways/premiumsms/initSmsAuto.action

If a payment gateway requires a verification code please use the code below.

Verification SMS code for sandbox
1111

Test scenario

To verify your integration it is required to make following test payments:

1. Verification payment to check basic functions

Make a test payment using all required payment methods. You can find Information of how to set up a standard payment in our article describing a process of payment gateway integration.

2. Verification payment to check processing payment status CANCELED

You can make a payment using a test payment card. Just use an amount with a “payment declined” status. The second option is to choose a payment method of online bank button and after redirecting to a test form you need to select a “Cancel” option. At the point of sale this payment should be marked as CANCELED. Status overwriting is ensured by automatic http notification. You can find more information about notifications and processing in the article describing a process of payment gateway integration.

3. Verification payment to check processing payment status TIMEOUTED

After redirecting to the payment gateway please close the window with the payment gateway. The status will change to TIMEOUTED that occurs after 12 hours. Payment status is changed overwriting is ensured by automatic http notification. You can find more information about notifications and processing in the article describing a process of payment gateway integration.

4. Verification payment to check the redirection to the point of sale without payment being made and notification processing

  • Choose a bank transfer payment method in the payment gateway application.
  • After entering an e-mail address payment details using a bank transfer are generated (please, write down these payment details). In a production environment payment details are also sent to the customer by e-mail.
  • It is necessary to be redirected to the point of sale by clicking a cross in the right upper corner of the payment gateway window and to check a payment status of your order (the payment should be in status "Waiting for payment").
  • It is necessary to check a redirection from the payment gateway to return_url if payment instructions are correctly displayed to customer that bank payment is expected.
  • It is also necessary to enter into your browser one of the links below to make a payment using or bank transfer data (PDF generated in the previous step)
    • Bank transfer

    ​https://partner.sandbox.gopay.com/gp-gateways/bank/gateway.action​
    

    After 3 minutes the payment status should be changed to “Paid”.

    Refundation

    Refund of the payment is a functionality which allows recovering funds for already made payment to the customer. This functionality is limited on our sandbox (test) enviroment, please see bellow.
    You can make refundation from your GoPay test account or via API request.

    Full refundation is by our sandbox (test) enviroment supported for methods:

    • Payment card
    • Online bank transfer (Raiffeisenbank and Česká Spořitelna)
    • Offline bank transfer

    Partially refundation is by our sandbox (test) enviroment supported for methods:

    • Online bank transfer (Raiffeisenbank and Česká Spořitelna)
    • Offline bank transfer

Was this article helpful?:

Are you looking for something else?

Contact support specialist