Testing
Get in touch
Sign in
Testing
Simulate payments to test your integration before launching in production

Solidgate’s sandbox testing capabilities, which encompass successful transactions, failures, fraud detection, and error modeling, are valuable for identifying potential issues and ensuring system stability.

By testing various payment methods such as card payments, Google Pay, Apple Pay, and PayPal, you can ensure interoperability and security, and prepare your integration for real-world scenarios.

Card payments

To test your Solidgate integration, use your sandbox channel with specific keys:

  • Guide
    Learn to authenticate API requests and fix validation errors effectively.
    Webhook keys,
    which start with the prefix wh_pk_ / wh_sk_ , allow for receiving simulated webhook notifications.
  • Guide
    Learn to authenticate API requests and fix validation errors effectively.
    API keys,
    starting with api_pk_ / api_sk_ , are used to make API requests within sandbox.

Test scenarios are available to simulate processing , success , and failure , which are crucial for assessing your system’s readiness and reliability across varied payment conditions. Use the following test credentials to test:

FieldDescriptionExample
Card numberNumber varies depending on the payment scenario like success or decline.4067429974719265
Expiry dateAny future date within the next 50 years is valid.12/34
CVV/CVCUse any 3-digit code (or 4-digit for Amex).123
CardholderUse any placeholder values.Name Surname

Success orders

Card numberOperationResult
4067429974719265authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing includes scenarios such as auth + settle , with certain limitations on timing and transaction status.
Card numberOperationResult
4532456618142692recurringsuccess
An example of the recurring token card_token , which you can receive via the check order status API / updated card order Webhook notification after payment.
Card numberOperationResult
497592770594980authsuccess
recurringsuccess
Testing Guide
Challenge flow in 3D Secure requires cardholder interaction for authentication, triggered by high-risk scenarios or regulatory mandates.
3DS
flow where the cardholder must complete additional authentication steps. This scenario simulates the full 3D Secure authentication process with cardholder verification.

Declined orders

Card numberOperationResult
4553815318053315authfailed
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
This scenario tests placing a temporary hold on funds, ensuring they are available for final transaction confirmation. Steps include creating an order processing, attempting authorization, and verifying if it fails auth_failed.
Card numberOperationResult
5361074849060618authsuccess
settlefailed
voidfailed
refundsuccess
This scenario involves a merchant attempting to finalize a transaction by capturing previously authorized funds, transferring the amount from the customer's to the merchant's account. Steps include successful authorization auth_ok, settlement attempt, and verifying if the transaction settles or fails.
Card numberOperationResult
5361074849060618authsuccess
settlefailed
voidfailed
refundsuccess
The customer initiates an authorization to temporarily hold a specific amount on their card, ensuring funds are available but not immediately transferred. This allows for final confirmation before transaction completion. Testing involves creating an order in the processing status, attempting authorization, and checking if the order transitions to the auth_failed status, indicating a failed authorization attempt.
Card numberOperationResult
4123212486997559authsuccess
settlesuccess
recurringfailed
voidsuccess
refundsuccess
Recurring payments involve scheduling automatic charges for ongoing services or subscriptions at specified intervals. Testing includes executing an auth to receive a token used for a recurring operation with the initial processing status of the transaction. The process is verified by ensuring the recurring transaction transitions to the fail status, indicating the recurring setup failure, while the order transitions to the declined status if successful.
Card numberOperationResult
4123212486997559authsuccess
settlesuccess
recurringfailed
voidsuccess
refundsuccess
The customer initiates a recurring payment that starts with an authorization step. This ensures the merchant can verify the card and secure funds before setting up automatic charges for ongoing services or subscriptions at specified intervals. Testing includes executing an initial payment through auth , receiving a token upon successful authorization, using this token for a recurring payment with another authorization step, and verifying the recurring-auth transaction outcome.
Card numberOperationResult
4476284533825961authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundfailed
This scenario tests the refund process, intended to reverse a previously successful charge and return funds to the customer. The procedure involves confirming a successful payment settle_ok, initiating a refund, and validating the outcome. Successful refunds should transition the status to refunded, while failures maintain the original settle_ok status.

Card brand test

This section provides a list of test cards that can be used to verify the payment system.

Card numberOperationResult
4532456618142692authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing this particular card brand is essential for ensuring smooth and secure transactions for customers, ultimately enhancing customer satisfaction and trust in the payment system.
Card numberOperationResult
5329777445319300authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing this particular card brand is crucial for ensuring compatibility and reliability in transactions, key to maintaining customer trust and minimizing transaction declines.
Card numberOperationResult
6763428189229070authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Ensuring Maestro card compatibility enhances global transaction reliability, essential for expanding market presence and strengthening consumer trust.
Card numberOperationResult
3527602488193781authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing JCB cards is essential for seamless global transactions, enhancing customer trust, and expanding market accessibility, ensuring broad compatibility and reliability.
Card numberOperationResult
6011218207927015authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Assessing Discover card transactions ensures broad acceptance and seamless payment experiences, reinforcing confidence in payment infrastructure.
Card numberOperationResult
6229261954246138authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing UnionPay cards is vital for ensuring global financial inclusivity and transactional efficacy, fostering wider acceptance and customer convenience.
Card numberOperationResult
371495481347626authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing American Express cards is essential for guaranteeing high-end transaction security and enhancing premium service offerings, vital for customer satisfaction and retention.
Card numberOperationResult
36527094796869authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Ensuring seamless transaction processing for Diners Club cards is essential to delivering exceptional service experiences and maintaining a loyal, high-value customer base.

Errors

Use the test cards to simulate payments that the issuer rejects for various reasons. This can be useful for testing the error-handling logic of your integration.


General decline

These errors reflect declined transactions from bank refusals, order time-outs, compliance issues, or authentication failures.

  • 0.01 Guide
    The general group of declines. The card-issuing bank did not complete the transaction successfully.
    General decline
  • 0.02 Guide
    The customer could not finalize the payment during the given timeframe, which resulted in order expiration.
    Order expired
  • 0.03 Guide
    In some cases, the card issuer can block a transaction for law violation reasons. It can be due to a cardholder or due to a sanctioned country.
    Illegal operation
Card numberResult
4510108818406882error : {code: 0.01, message: " Guide
The general group of declines. The card-issuing bank did not complete the transaction successfully.
General decline
"}
Card numberResult
4532003312475364error : {code: 0.02, message: " Guide
The customer could not finalize the payment during the given timeframe, which resulted in order expiration.
Order expired
"}
Card numberResult
4929213352238223error : {code: 0.03, message: " Guide
In some cases, the card issuer can block a transaction for law violation reasons. It can be due to a cardholder or due to a sanctioned country.
Illegal operation
"}

Validation errors

These errors indicate that correcting the input data can typically resolve invalid transaction data.

  • 2.06 Guide
    The CVV code is the three-digit code on the back of a Mastercard or Visa, or the four-digit code on the front of an American Express.
    Invalid CVV2 code
  • 2.08 Guide
    This decline indicates that the entered card number is not correct and the customer’s account cannot be found.
    Invalid card number
  • 2.09 Guide
    This error occurs when the entered or stored card expiration date is invalid or has already passed.
    Invalid expiration date
  • 2.10 Guide
    3DS URL was not displayed to the cardholder during 3D Secure authentication attempts.
    Invalid 3DS flow on merchant side
Card numberResult
5299389115628964error : {code: 2.06, message: " Guide
The CVV code is the three-digit code on the back of a Mastercard or Visa, or the four-digit code on the front of an American Express.
Invalid CVV2 code
"}
Card numberResult
4539146503757117error : {code: 2.08, message: " Guide
This error occurs when the entered or stored card expiration date is invalid or has already passed.
Invalid card number
"}
Card numberResult
4945960509912296error : {code: 2.09, message: " Guide
This error occurs when the entered or stored card expiration date is invalid or has already passed.
Invalid expiration date
"}
Card numberResult
4857027008185133error : {code: 2.10, message: " Guide
3DS URL was not displayed to the cardholder during 3D Secure authentication attempts.
Invalid 3DS flow on merchant side
"}

Transaction declines

Transaction refusal may be caused by factors such as card limits, insufficient balance, or suspected fraud, which often requires contacting the bank or using alternative payment methods.

  • 3.01 Guide
    The card issuer bank blocked the card for payments.
    Card is blocked
  • 3.02 Guide
    The customer’s card balance has insufficient funds.
    Insufficient funds
  • 3.03 Guide
    The transaction was declined because the card payment or credit limit was exceeded.
    Payment amount limit excess
  • 3.04 Guide
    The transaction has been declined by the card issuer. Reasons for decline can vary, including limits on online payments, daily payment amounts, or daily transaction counts.
    Transaction is declined by issuer
  • 3.05 Guide
    The card issuer has blocked the transaction for reasons that need to be clarified.
    Call your bank
  • 3.06 Guide
    The transaction was declined because debit cards are not supported.
    Debit card not supported
  • 3.07 Guide
    The transaction was declined because the card’s brand is not supported.
    Card brand is not supported
  • 3.08 Guide
    A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
    Do not honor
  • 3.10 Guide
    The issuing bank blocked the transaction due to possible fraud. The card was not in use for a long time, unusual activity, and other reasons.
    Suspected fraud
Card numberResult
5462413335551193error : {code: 3.01, message: “ Guide
The card issuer bank blocked the card for payments.
Card is blocked
”}
Card numberResult
5151948477715326error : {code: 3.02, message: “ Guide
The customer’s card balance has insufficient funds.
Insufficient funds
”}
4890838637940261recurring
Card numberResult
4485664001324176error : {code: 3.03, message: " Guide
The transaction was declined because the card payment or credit limit was exceeded.
Payment amount limit excess
"}
Card numberResult
5361250317309261error : {code: 3.04, message: " Guide
The transaction has been declined by the card issuer. Reasons for decline can vary, including limits on online payments, daily payment amounts, or daily transaction counts.
Transaction is declined by issuer
"}
2490161849593101recurring
Card numberResult
4916242642369774error : {code: 3.05, message: " Guide
The card issuer has blocked the transaction for reasons that need to be clarified.
Call your bank
"}
Card numberResult
5261820900437819error : {code: 3.06, message: " Guide
The transaction was declined because debit cards are not supported.
Debit card not supported
"}
Card numberResult
5134431550984251error : {code: 3.07, message: " Guide
The transaction was declined because the card’s brand is not supported.
Card brand is not supported
"} for recurring transactions only
Card numberResult
4907428874384745error : {code: 3.08, message: " Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
Do not honor
"}
Card numberResult
4283184051091165error : {code: 3.10, message: " Guide
The issuing bank blocked the transaction due to possible fraud. The card was not in use for a long time, unusual activity, and other reasons.
Suspected fraud
"}
4423511615594071recurring

Fraud and anti-fraud

These errors indicate that a transaction was flagged for potential fraud, often involving blocklisted or stolen cards or triggered antifraud rules. Merchants should display a general decline message and either investigate further or advise the customer to try again.

  • 4.02 Guide
    The card in use is stolen, all transactions are restricted.
    Stolen card
  • 4.05 Guide
    The acquiring bank blocked the transaction due to possible fraud. The card was not in use for a long time, unusual activity, and other reasons.
    PSP antifraud
  • 4.07 Guide
    The transaction was declined after triggering an antifraud rule.
    Trusted antifraud system
Card numberResult
4983102885450335error : {code: 4.02, message: " Guide
The card in use is stolen, all transactions are restricted.
Stolen card
"}
Card numberResult
4075752033922822error : {code: 4.05, message: " Guide
The acquiring bank blocked the transaction due to possible fraud. The card was not in use for a long time, unusual activity, and other reasons.
PSP antifraud
"}
Card numberResult
6011491463366455error : {code: 4.07, message: " Guide
The transaction was declined after triggering an antifraud rule.
Trusted antifraud system
"}

Data or card verification

These errors relate to address mismatches, failed 3D verification, and issues with card tokens, requiring merchants to verify customer information, check for fraud, and consult support as needed.

Card numberResult
5539974195624197error : {code: 5.01, message: " Guide
Understand why the payment is declined and how you can resolve it.
3D secure verification failed
"}
Card numberResult
4485589319980072error : {code: 5.02, message: " Guide
An invalid or nonexistent card token was received during the transaction.
Invalid card token
"}
Card numberResult
5241981397484014error : {code: 7.01, message: " Guide
This error indicates that the card token is missing or inaccessible.
Card token not found
"}

Connection or processing issues

These errors relate to transaction issues and connection errors. Solutions include retrying, using a different card, or contacting the bank.

  • 5.03 Guide
    An error occurred during transaction processing due to technical issues on the server side.
    Application error
  • 5.08 Guide
    Processing error. The transaction is not authorized due to technical issues.
    Invalid transaction
  • 6.02 Guide
    There is a connection issue, possibly due to poor or interrupted connectivity.
    Connection error
Card numberResult
5414915934193648error : {code: 5.03, message: " Guide
An error occurred during transaction processing due to technical issues on the server side.
Application error
"}
Card numberResult
5199914302370491error : {code: 5.08, message: " Guide
Processing error. The transaction is not authorized due to technical issues.
Invalid transaction
"}
Card numberResult
4935964870334207error : {code: 6.02, message: " Guide
There is a connection issue, possibly due to poor or interrupted connectivity.
Connection error
"}

Card blocked or restricted

These errors refer to transactions blocked due to lost or restricted cards, requiring merchants to offer alternative payment options and check for potential fraud.

Card numberResult
4222192107639022error : {code: 4.04, message: " Guide
The card in use is lost, all transactions are restricted.
Lost card
"}

Merchant configuration or activation errors

These errors are related to merchant configuration and API communication issues. The resolution steps include contacting the Solidgate support or ensuring proper API method usage.

Card numberResult
5394262465415346error : {code: 5.04, message: " Guide
Processing error occurred due to incorrect merchant configuration settings.
Merchant is not configured correctly
"}

Apple Pay or Google Pay

Sandbox provides a secure environment for simulating the integration of Guide
Enable Google Pay button to give your customers more payment options.
Google Pay
and Guide
Optimize your payment form with Apple Pay integration, providing a secure and efficient checkout for Apple device customers.
Apple Pay,
ensuring no risk to actual bank accounts or transactions.

Before beginning tests, please consult with your account manager regarding configuration needs. Keep in mind that Google Pay and Apple Pay digital wallets require the use of real cards and test cards are not work.

For the initial one-time payment, using any amount not detailed below result in a standard approval, ensuring all subsequent recurring payments on that token are automatically approved. However, to initiate a specific recurring or recurring auth payment outcomes, the initial transaction must have predefined amount values, which should be specified in cents, for example, amount 100 means 1:

  • 100 for Guide
    3D Secure enhances online payment security by verifying cardholder identity, reducing fraud, and shifting liability from merchants to card issuers.
    no 3DS
    success
  • 666 for Guide
    Challenge flow in 3D Secure 2 requires cardholder interaction for authentication, triggered by high-risk scenarios or regulatory mandates.
    challenge
    success
  • 555 for Guide
    Frictionless flow in 3D Secure 2 authenticates transactions silently, requiring no input from the cardholder for low-risk payments.
    frictionless
    success

Using an amount different from the specified values for the initial transaction ensures that subsequent recurring payments are always approved. This demonstrates the flexibility of the system in handling various transaction types.

AmountResult
100success without 3DS
666success with 3DS
555success with frictionless 3DS
AmountResult
1error : {code: 0.01, message: " Guide
The general group of declines. The card-issuing bank did not complete the transaction successfully.
General decline
"}
301error : {code: 3.01, message: " Guide
The card issuer bank blocked the card for payments.
Card is blocked
"}
302error : {code: 3.02, message: " Guide
The customer's card balance has insufficient funds.
Insufficient funds
"}
3020error : {code: 3.02, message: " Guide
The customer's card balance has insufficient funds.
Insufficient funds
"} with frictionless 3DS
304error : {code: 3.04, message: " Guide
The transaction has been declined by the card issuer. Reasons for decline can vary, including limits on online payments, daily payment amounts, or daily transaction counts.
Transaction is declined by issuer
"}
308error : {code: 3.08, message: " Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
Do not honor
"}
3080error : {code: 3.08, message: " Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
Do not honor
"} with 3DS
310error : {code: 3.10, message: " Guide
The issuing bank blocked the transaction due to possible fraud. The card was not in use for a long time, unusual activity, and more.
Suspected fraud
"}
403error : {code: 4.03, message: " Guide
The card is restricted, possibly due to being reported lost or stolen, or because of a restriction at the BIN or cardholder level preventing usage in certain countries, such as those subject to OFAC or embargo restrictions.
Restricted card
"}
AmountResult
549processing
649processing with 3DS
749processing with frictionless 3DS

PayPal

PayPal testing allows you to simulate failed transactions using a sandbox environment, which is useful for ensuring that your system correctly handles various scenarios, including negative flows.

Technical declines generated in the sandbox environment do not appear in PayPal's administrative dashboards.

  • Before you begin testing, ensure that your development environment is set up correctly.
  • To perform testing, request access to the PayPal sandbox account from your account manager.

To test failed payments, set the API request with currency to USD and a specific amount, which should be specified in cents like amount 302 means 3.02, to trigger errors.

AmountResult
302error : {code: 3.02, message: " Guide
The customer's card balance has insufficient funds.
Insufficient funds
"}
305error : {code: 3.05, message: " Guide
The cardholder should contact their bank for further information.
Call your bank
"}
308error : {code: 3.08, message: " Guide
.A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
Do not honor
"}
AmountResult
301error : {code: 3.01, message: " Guide
The card issuer bank blocked the card for payments.
Card is blocked
"}
302error : {code: 3.02, message: " Guide
The customer's card balance has insufficient funds.
Insufficient funds
"}
305error : {code: 3.05, message: " Guide
The cardholder should contact their bank for further information.
Call your bank
"}
308error : {code: 3.08, message: " Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
Do not honor
"}
502error : {code: 5.02, message: " Guide
An invalid or nonexistent card token was received during the transaction.
Invalid card token
"}
512error : {code: 5.12, message: " Guide
The account is blocked and all transactions made through this account is likely to be declined by the payment processor or acquiring bank until the problem is resolved.
Account is blocked
"}

Looking for help? Contact us
Stay informed with Changelog