Docs

Payments Articles & FAQ

Stripe, testing, gateway integration, configuration, payment gateway, sandbox, add card, sign up

Chargebee with Stripe Payment Gateway for Recurring Subscription Billing

Manage your subscription billing business using Chargebee. Use Stripe as your payment gateway and co

38989385

2013-08-09T13:27:49Z

2022-12-13T14:36:28Z

14431

448

10

120958

Testing with Stripe sandbox

Testing with Stripe sandbox 

You can connect your Stripe test account with your Chargebee test account, to simulate your workflow in a testing environment. This will allow you to test different subscription workflows such as payment success, failure and also the Dunning process.

Step 1

In your Chargebee test site, go to Settings > Configure Chargebee > Payment Gateways and select Stripe. You will be redirected to Stripe's sign-in page and prompted to link your existing Stripe account or create a new Stripe account to connect with Chargebee.

You will be required to input your Stripe account credentials. Ensure you are connecting your Stripe account while it's on Test Mode.


Step 2**
To make sure your Stripe account is set as the default gateway on Chargebee, go to configure Smart routing for Stripe.

To do this click Settings > Configure Chargebee > Payment Gateways > Manage Rules. Here you can assign a specific currency/payment method to a specific gateway when you assign a currency to a gateway as displayed below.

Essentially you are linking each payment type (Card, Direct Debit) to a gateway that is supported & testing has to be done for Stripe in a subscription where the plan's currency is assigned to Stripe.

Configuration

The Stripe payment gateway's configuration can be tested under two places:

Updating card details of an existing subscription

  1. Open an existing subscription in Chargebee
  2. Click on the Add Card link
  3. Set the Gateway to Stripe(1) on the Add card page
  4. Click the test card link(2) provided for Stripe gateway
  5. Copy any test card number provided by Stripe(3) and paste(4) it in the add card page.
  6. Click Add Credit Card(5)

Testing


Use the card details on the checkout page**

On the checkout page under the card details section, Stripe's test card numbers would auto-populate on the dropdown list to help simulate various test results.

Related Articles 

Transaction amount limit in Stripe
I'm getting card declined or processor declined error. What's going on?
What does Chargebee offer that Stripe doesn't?
Stripe Error: “This Connect account cannot currently make live charges”.
Error: "Payment collection failed. Customer does not have a linked card with ID card". What’s going on?
How do I configure Chargebee’s webhook in Stripe?
Which API keys do I need to set up stripe.js? Where can I find them?
How to retrieve the Stripe payment method id for stripe payment intent API?
For ACH payments, how do I pass a bank account to Chargebee using the API?
I'm moving to a new Stripe account in Chargebee. What are the steps to be followed?
Stripe India for INR and non-INR transactions
How to move to a new Stripe account?
Configuring Payments via Stripe
What is stripe.js? What are my implementation options with stripe.js?
How to setup Stripe-Plaid authentication?
Error “As per Indian Regulations, goods export transactions require a billing and shipping address.
What is the Chargebee + stripe.js flow of information?
How to disable all payment methods and allow only ACH?
How to configure Gpay Via Stripe?
My customer “created” date is different in Stripe and doesn’t match with Chargebee records. Why?
Why are we receiving “[EXTERNAL] Stripe webhook delivery issues emails” from Stripe?
Is it mandatory to configure Chargebee webhook in Stripe?
What are the new Stripe India RBI e-mandate changes?
How to configure SEPA Payments via Stripe?
Stripe SEPA via API
How to enable Stripe Level 2 Data in Chargebee?
Error: The payment is blocked due to a high likelihood of chargeback
Unable to find the customer details in Gateway - Stripe
How to use Financial Connections- ACH via Stripe?
Stripe capture_method
How can I disallow payments using PrePaid Cards via Stripe?
What is the general 3DS checkout flow with Stripe and Chargebee?
If a payment method is deleted in Chargebee, will it be deleted in Stripe?
How will the RBI e-mandate regulations impact my Stripe Integration with Chargebee?
How to enable BACS payment method via Stripe?
How to enable BECS payment method via Stripe?
How to enable Boleto payment method via Stripe?
How to confirm Stripe is receiving level 2 data from Chargebee?
How to resolve Bank account verification error "Gateway Err: The micro deposit has a type of descriptor_code"
Why Unattempted payment attempts in Stripe being refunded ?
Why payments made through the Chargebee sandbox are not reflected in the Stripe dashboard ?
Was this article helpful?
Loading…