Docs

Log in to read the version of docs relevant to your site, or use the dropdown versions

Chargebee Test Gateway

Chargebee Test Gateway allows you to visualize scenarios such as payment success, payment failure due to invalid card details or insufficient funds, smart routing etc. This is a test gateway and is available only in the Test Site. When you sign up for Chargebee, Chargebee's Test Gateway will be configured by default for your account. However, you can also choose to configure multiple Chargebee Test Gateways if you wish to test the Smart Routing feature.

Here is how you configure the Chargebee Test Gateway:

You can change the card settings by clicking the Manage link in the Payment Methods page.

You can configure the following settings:

Test Card Numbers

Listed below are test card numbers that you can use to run your simulations using Chargebee's Test Gateway.

You can use any 3/4 digit numbers when prompted for CVV and any valid date in the future for expiry date.

Card Number

Card Type

Response Description

<tr>
  <td>
    <p>4111 1111 1111 1111</p>
  </td>
  <td>
    <p>Visa</p>
  </td>
  <td>
    <p>Successful Transaction</p>
  </td>
</tr>

<tr>
  <td>
    <p>5555 5555 5555 4444</p>
  </td>
  <td>
    <p> MasterCard </p>
  </td>
  <td>
    <p>Successful Transaction</p>
  </td>
</tr>

<tr>
  <td>
    <p>3782 822463 10005</p>
  </td>
  <td>
    <p> AMEX </p>
  </td>
  <td>
    <p>Successful Transaction</p>
  </td>
</tr>

<tr>
  <td>
    <p>6011 1111 1111 1117</p>
  </td>
  <td>
    <p> Discover </p>
  </td>
  <td>
    <p>Successful Transaction</p>
  </td>
</tr>

<tr>
  <td>
    <p>3530 1113 3330 0000</p>
  </td>
  <td>
    <p> JCB </p>
  </td>
  <td>
    <p>Successful Transaction</p>
  </td>
</tr>

<tr>
  <td>
    <p>3852 0000 0232 37</p>
  </td>
  <td>
    <p> Diners </p>
  </td>
  <td>
    <p>Successful Transaction</p>
  </td>
</tr>

<tr>
  <td>
    <p>4119 8627 6033 8320</p>
  </td>
  <td>
    <p> Visa </p>
  </td>
  <td>
    <p>Card Storage will fail with a gateway verification failure</p>
  </td>
</tr>

<tr>
  <td>
    <p>4005 5192 0000 0004</p>
  </td>
  <td>
    <p> Visa </p>
  </td>
  <td>
    <p>Charge attempts will fail with an "Insufficient funds" error. </p>
  </td>
</tr>

3DS Cards

You can use these cards to test the 3DS flow.

Card Number

Card Type

Response Description

<tr>
  <td>
    <p>4556761029983886</p>
  </td>
  <td>
    <p> Visa </p>
  </td>
  <td>
    <p>
      Use the following amounts to test the below mentioned use cases
      (amount in cents).
      <br/>
      <br/>
      <b>3001</b>: 3D Secure 2 full frictionless flow (immediate transaction
      flow)
      <br/>
      <b>3002</b>: Fallback from 3DS2 to 3DS1
      <br/>
      <b>3003</b>: 3D Secure device fingerprint flow with direct authorize
      (requires lifecycle)
      <br/>
      <b>3004</b>: 3D Secure device fingerprint flow to challenge (requires
      lifecycle and completion call)
      <br/>
      <b>3103</b>: 3D Secure device fingerprint flow with forced failure
      <br/>
      <b>3104</b>: 3D Secure challenge flow with forced failure
    </p>
  </td>
</tr>

<tr>
  <td>
    <p>4111 1111 1111 1111</p>
  </td>
  <td>
    <p>Visa</p>
  </td>
  <td>
    <p>3DS not enrolled</p>
  </td>
</tr>

Was this article helpful?