Other Processors

When testing you should never use real card details - each payment processor has their own test cards, the majority of which you can find below

ProcessorsTest Cards
Adyenhttps://docs.adyen.com/development-resources/test-cards/test-card-numbers/
Affirmhttps://docs.affirm.com/platforms/docs/test-and-go-live
Authorize.nethttps://developer.authorize.net/hello_world/testing_guide/
Boulevardhttps://developers.joinblvd.com/2020-01/tokenization-api/overview
Bill It Nown/a
Braintreehttps://developers.braintreepayments.com/guides/credit-cards/testing-go-live/php
BSPayOnehttps://developer.payone.com/en/integration/how-to-integrate/test-cases/index
Card Connecthttps://developer.cardpointe.com/guides/cardpointe-gateway#using-test-payment-accounts
Checkout.comhttps://www.checkout.com/docs/testing/test-cards
Cybersourcehttps://developer.cybersource.com/hello-world/testing-guide-v1.html
Ecommpayhttps://developers.ecommpay.com/en/en_PP_TestCards.html
FortisPayhttps://docs.fortispay.com/developers/api/test-data
FreedomPayhttps://freedompay.atlassian.net/wiki/spaces/IP/pages/922550279/Magic+Cards+for+Testing
Global Paymentshttps://developer.globalpay.com/resources/test-card-numbers
GMOn/a
Interprosen/a
Kounthttps://support.kount.com/hc/en-us/articles/360045745631-FAQ-How-Do-I-Pass-Test-Transactions-to-You
LiqPayhttps://www.liqpay.ua/documentation/en/api/sandbox
Molliehttps://docs.mollie.com/components/testing
Monerishttps://developer.moneris.com/en/More/Testing/Testing%20a%20Solution
NMIhttps://support.nmi.com/hc/en-gb/articles/115002375583-Test-Cards
Opayohttps://developer.opayo.co.uk/api/card-not-present-payments/test-card-numbers
PayPal Commercehttps://developer.paypal.com/tools/sandbox/card-testing/
PayPal PayFlowhttps://developer.paypal.com/tools/sandbox/card-testing/
Paysafehttps://developer.paysafe.com/en/rest-apis/cards/test-and-go-live/test-cards/
Pay Tomorrowhttps://www.paytomorrow.com/developers
PayUhttp://developers.payu.com/en/overview.html#cards
QuickBooks Paymentshttp://help.noviams.com/en/articles/1505925-deep-dive-testing-quickbooks-payments-credit-card-transactions
Shift4https://dev.shift4.com/docs/testing
Squarehttps://developer.squareup.com/docs/testing/test-values
Stripehttps://stripe.com/docs/testing
Transbankhttps://www.transbankdevelopers.cl/documentacion/como_empezar#ambientes
Trust Paymentshttps://help.trustpayments.com/hc/en-us/articles/4403290773905-Testing-card-payments
USAEpayhttps://help.usaepay.info/developer/reference/testcards/
Veemn/a
Worldpayhttp://support.worldpay.com/support/kb/bg/testandgolive/tgl5103.html

PayPal Testing

The PayPal sandbox works a little differently from other gateways.

To test PayPal you must:

  1. Create a PayPal developer account https://developer.paypal.com/
  2. Create a sandbox account
  3. Get the API credentials / test credit card
Sandbox Accounts
Sandbox Accounts - Select
Test Credentials

Failure Scenarios

To test failure scenarios, a HTTP header needs to be passed to PayPal. This only applied to SANDBOX payments.

You can do this by setting the customer name:

first_name: PayPal-Mock-Response
last_name: PAYER_CANNOT_PAY

Where last name is the response you want to emulate.

Please refer to the following documentation:

https://developer.paypal.com/tools/sandbox/negative-testing/request-headers/ https://developer.paypal.com/docs/api/payments/v2/