Testing
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.


Payment outcomes

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 failed , which are crucial for assessing your system’s readiness and reliability across varied payment conditions.

CARD NUMBER
4067429974719265
TEST CARD
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
Card number varies depending on the payment scenario like success or decline.

Success

CARD NUMBER
4067429974719265
SUCCESS
authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing includes scenarios such as auth + settle , with certain limitations on timing and transaction status.
CARD NUMBER
4532456618142692
RECURRING
recurringsuccess
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.

Declined

CARD NUMBER
4553815318053315
AUTH FAILED
authfailed
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 NUMBER
5361074849060618
SETTLE FAILED
authsuccess
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 NUMBER
5361074849060618
VOID FAILED
authsuccess
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 NUMBER
4123212486997559
RECURRING FAILED
authsuccess
settlesuccess
recurringfailed
voidsuccess
refundsuccess
Testing recurring payments involves executing an auth to receive a token used for a recurring operation. For recurring auth payments, execute an initial payment through auth , receive a token upon successful authorization, and use this token for a recurring payment with another authorization step. The recurring transaction transitions to the fail status, indicating the recurring setup failure, while the order transitions to the declined status.
CARD NUMBER
4476284533825961
REFUND FAILED
authsuccess
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.

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.

  • Guide
    The general group of declines. The card-issuing bank did not complete the transaction successfully.
    0.01
    General decline
  • Guide
    The customer could not finalize the payment during the given timeframe, which resulted in order expiration.
    0.02
    Order expired
  • 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.
    0.03
    Illegal operation
CARD NUMBER
4510108818406882
ERROR 0.01
error : {code: Guide
The general group of declines. The card-issuing bank did not complete the transaction successfully.
0.01
, message: "General decline"}
CARD NUMBER
4532003312475364
ERROR 0.02
error : {code: Guide
The customer could not finalize the payment during the given timeframe, which resulted in order expiration.
0.02
, message: "Order expired"}
CARD NUMBER
4929213352238223
ERROR 0.03
error : {code: 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.
0.03
, message: "Illegal operation"}

Validation errors

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

  • 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.
    2.06
    Invalid CVV2 code
  • Guide
    This decline indicates that the entered card number is not correct and the customer’s account cannot be found.
    2.08
    Invalid card number
  • Guide
    This error occurs when the entered or stored card expiration date is invalid or has already passed.
    2.09
    Invalid expiration date
  • Guide
    3DS URL was not displayed to the cardholder during 3D Secure authentication attempts.
    2.10
    Invalid 3DS flow on merchant side
CARD NUMBER
5299389115628964
ERROR 2.06
error : {code: 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.
2.06
, message: "Invalid CVV2 code"}
CARD NUMBER
4539146503757117
ERROR 2.08
error : {code: Guide
This error occurs when the entered or stored card expiration date is invalid or has already passed.
2.08
, message: "Invalid card number"}
CARD NUMBER
4945960509912296
ERROR 2.09
error : {code: Guide
This error occurs when the entered or stored card expiration date is invalid or has already passed.
2.09
, message: "Invalid expiration date"}
CARD NUMBER
4857027008185133
ERROR 2.10
error : {code: Guide
3DS URL was not displayed to the cardholder during 3D Secure authentication attempts.
2.10
, message: "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.

  • Guide
    The card issuer bank blocked the card for payments.
    3.01
    Card is blocked
  • Guide
    The customer’s card balance has insufficient funds.
    3.02
    Insufficient funds
  • Guide
    The transaction was declined because the card payment or credit limit was exceeded.
    3.03
    Payment amount limit excess
  • 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.
    3.04
    Transaction is declined by issuer
  • Guide
    The card issuer has blocked the transaction for reasons that need to be clarified.
    3.05
    Call your bank
  • Guide
    The transaction was declined because debit cards are not supported.
    3.06
    Debit card not supported
  • Guide
    The transaction was declined because the card’s brand is not supported.
    3.07
    Card brand is not supported
  • Guide
    A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
    3.08
    Do not honor
  • 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.
    3.10
    Suspected fraud
CARD NUMBER
5462413335551193
ERROR 3.01
error : {code: Guide
The card issuer bank blocked the card for payments.
3.01
, message: "Card is blocked"}
CARD NUMBERS
5151948477715326
4890838637940261
recurring
ERROR 3.02
error : {code: Guide
The customer's card balance has insufficient funds.
3.02
, message: "Insufficient funds"}
CARD NUMBER
4485664001324176
ERROR 3.03
error : {code: Guide
The transaction was declined because the card payment or credit limit was exceeded.
3.03
, message: "Payment amount limit excess"}
CARD NUMBERS
5361250317309261
2490161849593101
recurring
ERROR 3.04
error : {code: 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.
3.04
, message: "Transaction is declined by issuer"}
CARD NUMBER
4916242642369774
ERROR 3.05
error : {code: Guide
The card issuer has blocked the transaction for reasons that need to be clarified.
3.05
, message: "Call your bank"}
CARD NUMBER
5261820900437819
ERROR 3.06
error : {code: Guide
The transaction was declined because debit cards are not supported.
3.06
, message: "Debit card not supported"}
CARD NUMBERS
4347225319309917
5134431550984251
recurring
ERROR 3.07
error : {code: Guide
The transaction was declined because the card's brand is not supported.
3.07
, message: "Card brand is not supported"}
CARD NUMBER
4907428874384745
ERROR 3.08
error : {code: Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
3.08
, message: "Do not honor"}
CARD NUMBERS
4283184051091165
4423511615594071
recurring
ERROR 3.10
error : {code: 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.
3.10
, message: "Suspected fraud"}

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.

  • Guide
    The card in use is stolen, all transactions are restricted.
    4.02
    Stolen card
  • 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.
    4.05
    PSP antifraud
  • Guide
    The transaction was declined after triggering an antifraud rule.
    4.07
    Trusted antifraud system
CARD NUMBER
4983102885450335
ERROR 4.02
error : {code: Guide
The card in use is stolen, all transactions are restricted.
4.02
, message: "Stolen card"}
CARD NUMBER
4075752033922822
ERROR 4.05
error : {code: 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.
4.05
, message: "PSP antifraud"}
CARD NUMBER
6011491463366455
ERROR 4.07
error : {code: Guide
The transaction was declined after triggering an antifraud rule.
4.07
, message: "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.

  • Guide
    Understand why the payment is declined and how you can resolve it.
    5.01
    3D secure verification failed
  • Guide
    Receive this error when you received an invalid/nonexistent card token.
    5.02
    Invalid card token
  • Guide
    This error indicates that the card token is missing or inaccessible.
    7.01
    Card token not found
CARD NUMBER
5539974195624197
ERROR 5.01
error : {code: Guide
Understand why the payment is declined and how you can resolve it.
5.01
, message: "3D secure verification failed"}
CARD NUMBER
4485589319980072
ERROR 5.02
error : {code: Guide
An invalid or nonexistent card token was received during the transaction.
5.02
, message: "Invalid card token"}
CARD NUMBER
5241981397484014
ERROR 7.01
error : {code: Guide
This error indicates that the card token is missing or inaccessible.
7.01
, message: "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.

  • Guide
    An error occurred during transaction processing due to technical issues on the server side.
    5.03
    Application error
  • Guide
    Processing error. The transaction is not authorized due to technical issues.
    5.08
    Invalid transaction
  • Guide
    There is a connection issue, possibly due to poor or interrupted connectivity.
    6.02
    Connection error
CARD NUMBER
5414915934193648
ERROR 5.03
error : {code: Guide
An error occurred during transaction processing due to technical issues on the server side.
5.03
, message: "Application error"}
CARD NUMBER
5199914302370491
ERROR 5.08
error : {code: Guide
Processing error. The transaction is not authorized due to technical issues.
5.08
, message: "Invalid transaction"}
CARD NUMBER
4935964870334207
ERROR 6.02
error : {code: Guide
There is a connection issue, possibly due to poor or interrupted connectivity.
6.02
, message: "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 NUMBER
4222192107639022
ERROR 4.04
error : {code: Guide
The card in use is lost, all transactions are restricted.
4.04
, message: "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 NUMBER
5394262465415346
ERROR 5.04
error : {code: Guide
Processing error occurred due to incorrect merchant configuration settings.
5.04
, message: "Merchant is not configured correctly"}

3D Secure authentication

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.

CARD NUMBER
497592770594980
3DS
authsuccess
recurringsuccess

Cards brand

Use a list of test cards to verify the payment system.

CARD NUMBER
4532456618142692
VISA
authsuccess
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 NUMBER
5329777445319300
MASTERCARD
authsuccess
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 NUMBER
6763428189229070
MAESTRO
authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Ensuring Maestro card compatibility enhances global transaction reliability, essential for expanding market presence and strengthening consumer trust.
CARD NUMBER
3527602488193781
JCB
authsuccess
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 NUMBER
6011218207927015
DISCOVER
authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Assessing Discover card transactions ensures broad acceptance and seamless payment experiences, reinforcing confidence in payment infrastructure.
CARD NUMBER
6229261954246138
UNIONPAY
authsuccess
settlesuccess
recurringsuccess
voidsuccess
refundsuccess
Testing UnionPay cards is vital for ensuring global financial inclusivity and transactional efficacy, fostering wider acceptance and customer convenience.
CARD NUMBER
371495481347626
AMEX
authsuccess
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 NUMBER
36527094796869
DINERS
authsuccess
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.

Estimated and incremental auth

Test Guide
Authorize estimated amounts and adjust authorization holds for payments.
estimated incremental authorization
flows to ensure your integration handles authorization types correctly.

CARD NUMBER
4067429974719265
SUCCESS
auth estimatedsuccess
auth incrementalsuccess
CARD NUMBER
4532456618142692
RECURRING
auth estimatedsuccess
auth incrementalsuccess
CARD NUMBER
4553815318053315
AUTH FAILED
auth estimatedfailed
auth incrementalfailed
CARD NUMBER
5140308911473822
INCREMENTAL FAILED
auth estimatedsuccess
auth incrementalfailed
CARD NUMBER
497592770594980
3DS
auth estimatedsuccess

CARD NUMBER
5329777445319300
MASTERCARD
auth estimatedsuccess
auth incrementalsuccess
CARD NUMBER
371495481347626
AMEX
auth estimatedsuccess
auth incrementalsuccess
CARD NUMBER
36527094796869
DINERS
auth estimatedsuccess
auth incrementalsuccess

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.

AMOUNT
100
SUCCESS
success without 3DS
AMOUNT
666
SUCCESS
success with 3DS
AMOUNT
555
SUCCESS
success with frictionless 3DS
AMOUNT
1
ERROR 0.01
error : {code: Guide
The general group of declines. The card-issuing bank did not complete the transaction successfully.
0.01
, message: "General decline"}
AMOUNT
301
ERROR 3.01
error : {code: Guide
The card issuer bank blocked the card for payments.
3.01
, message: "Card is blocked"}
AMOUNT
302
ERROR 3.02
error : {code: Guide
The customer's card balance has insufficient funds.
3.02
, message: "Insufficient funds"}
AMOUNT
3020
ERROR 3.02
error : {code: Guide
The customer's card balance has insufficient funds.
3.02
, message: "Insufficient funds"} with frictionless 3DS
AMOUNT
304
ERROR 3.04
error : {code: 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.
3.04
, message: "Transaction is declined by issuer"}
AMOUNT
308
ERROR 3.08
error : {code: Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
3.08
, message: "Do not honor"}
AMOUNT
3080
ERROR 3.08
error : {code: Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
3.08
, message: "Do not honor"} with 3DS
AMOUNT
310
ERROR 3.10
error : {code: 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.
3.10
, message: "Suspected fraud"}
AMOUNT
403
ERROR 4.03
error : {code: 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.
4.03
, message: "Restricted card"}
AMOUNT
549
PROCESSING
processing
AMOUNT
649
PROCESSING
processing with 3DS
AMOUNT
749
PROCESSING
processing 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.

AMOUNT
302
ERROR 3.02
error : {code: Guide
The customer's card balance has insufficient funds.
3.02
, message: "Insufficient funds"}
AMOUNT
305
ERROR 3.05
error : {code: Guide
The cardholder should contact their bank for further information.
3.05
, message: "Call your bank"}
AMOUNT
308
ERROR 3.08
error : {code: Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
3.08
, message: "Do not honor"}
AMOUNT
301
ERROR 3.01
error : {code: Guide
The card issuer bank blocked the card for payments.
3.01
, message: "Card is blocked"}
AMOUNT
302
ERROR 3.02
error : {code: Guide
The customer's card balance has insufficient funds.
3.02
, message: "Insufficient funds"}
AMOUNT
305
ERROR 3.05
error : {code: Guide
The cardholder should contact their bank for further information.
3.05
, message: "Call your bank"}
AMOUNT
308
ERROR 3.08
error : {code: Guide
A general decline response indicating that the card issuer has rejected the transaction without providing a specific reason code.
3.08
, message: "Do not honor"}
AMOUNT
502
ERROR 5.02
error : {code: Guide
An invalid or nonexistent card token was received during the transaction.
5.02
, message: "Invalid card token"}
AMOUNT
512
ERROR 5.12
error : {code: 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.
5.12
, message: "Account is blocked"}

Looking for help? Contact us
Stay informed with Changelog