Tpay
DOCS

Available Environments

Production

API URL
https://api.tpay.com
Registration URL
https://register.tpay.com
Merchant Panel URL
https://panel.tpay.com
Transactional Panel URL
https://secure.tpay.com

Sandbox

API URL
https://openapi.sandbox.tpay.com
Registration URL
https://register.sandbox.tpay.com
Merchant Panel URL
https://panel.sandbox.tpay.com
Transactional Panel URL
https://secure.sandbox.tpay.com
Note

Each of these environments operates independently; changes made in one environment are not replicated or copied to the other.

Authorization and access credentials are also separate for each environment.

Testing

Sandbox users have the opportunity to test all available functionalities – these are enabled by default for all registered accounts.

Note

Differences between the production and Sandbox environments result from the specifics of the test environment, including the lack of connection to systems of external providers (e.g., banks), or limiting the impact of tests on real users (e.g., default blocking of emails sent to payers).

Card Payments

For the Sandbox environment, we have prepared a set of test payment cards. It is not possible to conduct transactions using cards with other numbers.

Test payment card number    Code CVC/CVVExpiry date
2223 0002 8000 00163 random numbersAny future date
4056 2178 4359 72583 random numbersAny future date
5204 7400 0000 10023 random numbersAny future date
5457 2100 0200 10163 random numbersAny future date
4012 0010 3714 11123 random numbersAny future date
4911 8300 0000 03 random numbersAny future date
4000 0012 3456 2345 6783 random numbersAny future date

 

Additionally, it is possible to test 3DS validation according to the following rules:

AmountEffectExample
Ends in 1Payment accepted without 3DS challange.5.21
Ends in 3Simulates successfull 3DS challange.5.23
Ends in 5Simulates failed 3DS challange.5.25
Ends in 6Payment declined.5.26
Other valueRedirects to 3DS challange screen.5.27, 5.24

 

Regardless of the amounts above, there are several fixed amounts on the Sandbox that trigger errors:

Amount                                                Payment method
500.00, 501.00, 503.00For card and wallet payments (card, token, Google Pay, Visa Mobile, Apple Pay)
504.00For token-only payments

Visa Mobile

Payment with Visa Mobile is based on customers phone number. Phone number can be provided via:

  • in payer.phone field in API call to create transaction
  • read from frontend component on Tpay transaction portal (only when not provided during transaction creation)
Phone number         Action
(48) 12345678904number not supported by Visa Mobile.
any other numberaccepted (transaction amount affects behavior).

Transaction values allowing for the testing of different scenarios:

Amount                                                 Action
201.00Transaction acceptance in Visa Mobile by the payer after 120 seconds.
202.00Payer takes no action on the Visa Mobile pop-up - the allocated 5 minutes expire.
203.00 and 204.00Transaction acceptance in Visa Mobile by the payer after 180 seconds.
499.00Immediate rejection of the transaction in Visa Mobile by the payer.
500.00, 501.00, 503.00, 600.00Amounts triggering errors.
Any otherImmediate acceptance of the transaction in Visa Mobile by the payer.

Google Pay - test cards

To correctly test the Google Pay integration with Tpay in the Sandbox environment, use the Google test card suite.

Google test cards allow you to:

  • Test the payment process without providing real payment card data
  • Successfully complete tasks from the Google integration checklist, which is necessary to obtain production access: checklist

If you want to use test cards:

  1. Join the test card suite user group: group
  2. After entering the site, click the Join group button: googlepay-support-tpay
  3. Then, after refreshing the page, You have access to test cards!
Note

The test card suite is intended for use in TEST environments only.

Remember to correctly set the environment variable: {environment: 'TEST'}

Apple Pay

It is possible to test Apple Pay. However, it is necessary to open the link to the created transaction on an iOS device with a configured Apple Pay wallet and a real payment card added. The card is not charged during the process. As with cards and Google Pay, error amounts 500.00, 501.00, 503.00 are supported.

BLIK Payments

Testing payments using the BLIK channel requires providing an authorization code. For test payments, the correct authorization code must start with 777, e.g., 777654.

There are also test amounts that, even if a correct code is provided (i.e., starting with 777) will result in failed payment.

Table below shows selected amounts and corresponding errors.

AmountError descriptionError code
144.00Rejected by the payer.101
168.00Transaction rejected by the issuer.102
120.00Insufficient funds.103
312.00Issuer or payer timeout.104
96.00Payer limit exceeded.106
216.00Rejected for security reasons.107

 

BLIK payment can be extended by saving a user alias, allowing them to pay without having to provide a BLIK code the next time. The alias is a unique string of characters generated in the merchant's system; the alias type is UID.

To register a PAYID alias in the sandbox environment, two methods can be used:

  • Registration via code
Allowed codes
999009
999010
999011
999012
999013
999014
999015
999016
  • Registration via transaction amount for 777*** codes
Allowed amounts
x.08
x.09
x.10
x.11
x.12
x.13
x.14
x.15

 

When registering via amount, X represents an integer value; example amount values are 10.08, 15.10, 33.15. In this case, codes starting with 777 with any 6-digit completion should be used.

Note

When registering an alias, we are dependent on the PSP test environment, which has a maximum number of registered aliases for each of the available BLIK codes in that environment.

Aliases registered via codes starting with 999 are subject to auto removal. Every 15 minutes oldest entries are removed to leave at most 20 newest aliases connected with single code.

Aliases registered via amounts according to the table should remain active for at least a week. This also means it will be harder to find a free spot for an alias for a selected BLIK code.

In the sandbox environment, you can test a situation where the bank does not support the BLIK Recurring Payments alias. To trigger the message, use the amount 495.00, any 777*** code, and enter mock in the description field.

Instant Transfer (online, fast)

To test this payment method, select the Bank Transfer option in the payment gateway, and then choose the bank where the payment is to be finalized.

The Sandbox environment mirrors production behavior; therefore, in the case of a negative path, a message about waiting for payment will appear, as banks do not send information about abandoned payments.

Click to Pay

Merchant Onboarding to Click to Pay

For a merchant to process Click to Pay payments, they must have Elavon set as the acquirer for card payments. Merchant onboarding to Click to Pay happens automatically when Elavon card payments are activated in Tpay. All payments processed via the Click to Pay channel will be labeled as Click to Pay in the Merchant Panel.

Click to Pay Payments

To perform a test Click to Pay payment, it is required to have a test payer profile in the Click to Pay service run jointly by Visa and Mastercard. To create a test payer profile in Click to Pay, perform a transaction with card saving, checking the +Save card in Click to Pay_ checkbox and filling in the required data on the card saving form.

Alternatively, a test Click to Pay profile can be created and managed directly at Mastercard or Visa. For the next transaction made with the email registered in the test Click to Pay profile, an OTP (one-time password) form will be displayed during payment, where you should enter the six-digit code received via SMS and/or email. After correct authorization, the saved cards available for payment will be displayed.

If the Add device to trusted checkbox is selected during OTP authorization, OTP will no longer be required.

Click to Pay Test Cards

Real payment cards should not be used in the test environment. To test a payment, use the test cards provided by Visa and Mastercard.

Test cards dedicated to Click to Pay from Mastercard are available at this link.

Test cards dedicated to Click to Pay from Visa are:

Card Number                         Expiry DateCVV
4395 8400 0175 011012/25598
4395 8400 0001 001112/25189 (frictionless card - no 3DS)

 

In the case of Click to Pay, you can also test payer authentication using 3DS (same rules as for standard card payments), and error amounts 500.00, 501.00, 503.00 are also supported.