Testing Checkout

Testing the Payment Process


The Payment Form integration should be tested in the Sandbox before going live.

The Sandbox provides full functionality but it only emulates processing, no actual bank transactions are made.

When using PaySuper JS SDK ensure that:

If you’re using the PaySuper API in your server-side code then ensure that:

  • All API errors are handled accurately.
  • Webhooks contains properly URL configured in the Functional URL section on the Project webhooks page.

Test card numbers

To test a bank card payment in the Sandbox enter arbitrary expiry date (the format is MM/YY), a Secure code (CVC/CVV, the format is 3 digits) and a cardholder name (the format is first name last name).

You can also specify incorrect details (card number, expiration date, or CVV) to generate an error.

You will be redirected to the Sandbox page to select the desired results for success or failure. After you click the result button the current page will be closed and you will be redirected to the Checkout Form to view the purchase status.

Note, that when Merchant chooses to fail the authentication, then the payment is always declined, no matter what PAN has been used.

Use any of the following test card numbers:

Note that the Authorized cards must only be used to test the antifraud system reaction with a compulsory transfer payment to preauthorization.

3-D Secure test cards

3-D Secure is emulated with a page that doesn’t require any passwords and shows two buttons instead. One button is for a successful authentication, another is for a failed authentication.

mastercard

Confirmed

4000 0000 0000 0002

Click to copy
visa

Declined

5555 5555 5555 4444

Click to copy
visa

Authorized

4000 0000 0000 0044

Click to copy

Non 3-D Secure test cards

visa

Confirmed

4000 0000 0000 0077

Click to copy
mastercard

Declined

5555 5555 5555 4477

Click to copy
visa

Authorized

4000 0000 0000 0051

Click to copy

Currencies

You can choose a fixed set of currencies which will be actual for all products in your project on the Project settings page.

The full list of currencies that are supported for testing:

Code Country and Currency
USD United States Dollar
EUR Euro Member Countries
GBP United Kingdom Pound
RUB Russia Ruble
BRL Brazil Real
JPY Japan Yen
IDR Indonesia Rupiah
MYR Malaysia Ringgit
PHP Philippines Peso
SGD Singapore Dollar
THB Thailand Baht
VND Viet Nam Dong
KRW Korea (South) Won
TRY Turkey Lira
MXN Mexico Peso
CAD Canada Dollar
AUD Australia Dollar
NZD New Zealand Dollar
NOK Norway Krone
PLN Poland Zloty
CHF Switzerland Franc
CNY China Yuan Renminbi
INR India Rupee
Code Country and Currency
CLP Chile Peso
PEN Peru Sol
COP Colombia Peso
ZAR South Africa Rand
HKD Hong Kong Dollar
TWD Taiwan New Dollar
SAR Saudi Arabia Riyal
AED UAE Dirham
ARS Argentine Peso
ILS New Israeli Sheqel
KZT Kazakhstan Tenge
QAR Qatar Riyal
CRC Costa Rica Colon
HRK Croatia Kuna
CZK Czech Republic Koruna
RSD Serbia Dinar
RON Romania Leu
EGP Egypt Pound
DKK Denmark Krone
HUF Hungary Forint
BHD Bahraini Dinar
SEK Sweden Krona

Webhooks

PaySuper can send you webhook events to your server to notify on the payment status. You can make a successful payment with a test card number and verify the resulting event data and to ensure that your webhook’s endpoint is working and is configured properly.

GETTING STARTED

Configure Webhooks for your Project in PaySuper Dashboard and handle them on your server.

Testing the webhook notifications:

Before going live, check that your server responds with status code 200 and empty body to webhook notifications to acknowledge about success (or any status code from 400 for failure) for all types of the order:

  1. Go to Project Webhooks page.
  2. Under Webhook Settings section choose the tab with the order’s type: Simple checkout, Virtual currency, Virtual items, Game keys.
  3. Enter the payment order data from your project: customer ID, transaction ID, virtual item ID (if any). You can test success and failure responses using a valid data or non-existing values.
  4. Click Test and view the temporary logs below with the PaySuper notification and your server response.

Next steps

After the payment

After a successful payment, you have to fulfil the customer’s purchase. You can use webhooks or the Transactions to accomplish the purchase.

Customizing the Checkout

Learn about the different ways you can customize your Checkout.

Going live checklist

You can inspect this checklist before going live to ensure you’ve implemented all the significant setup steps.


Questions?

Sales

Our salespeople are pleasant and friendly. Leave your contact details, and we’ll be back to you in no time.

Support

We are always happy to help with a code, improve a guide or consider a feature.

GitHub

The PaySuper Checkout Form, the JS SDK and even the server are available as a source code on our GitHub. You’re welcome to explore the code and help us make PaySuper even better.


Not a developer?

Our engineers will help you integrate PaySuper into your existing e-commerce platform, a website or a game in the best possible way. If you want something very special and crazy custom yet don’t have a suitable programmer available nearby - talk to us! We won’t let down a PaySuper user. We will try to help you in every possible way. We can even hire a programmer for you!