Docschargebeedocs

HomeBillingPaymentsRevRecGrowthReveal
Support

Product Updates


  • Release Notes

Getting Started


  • Overview
  • Chargebee Billing Data Centers
  • Object Relationship Model
  • Understanding Sites
  • Chargebee Tech Glossary
  • Articles and FAQ

Implementing Chargebee


  • Implementation Guide
  • Go-live Checklist
  • Articles and FAQ

AI in Chargebee


  • Chargebee Agents
  • Chargebee Copilot
  • Chargebee MCP Server (Model Context Protocol)

Developer Resources


  • Developer Resources Overview
  • Articles and FAQ

Product Catalog


  • Product Catalog Overview
  • Coupons
  • Articles and FAQ

Subscriptions


  • Working with Subscriptions
  • Billing
  • Orders
  • Articles and FAQ

Customers


  • Managing Customers
  • Account Hierarchy
  • Email Notifications
  • Branding
  • Configure Multiple Languages
  • Articles and FAQ

Entitlements


  • Entitlements Overview
  • Features Overview
  • Feature Management
  • Managing Product Entitlements
  • Subscription Entitlements
  • Customer Entitlements
  • Grandfathering Entitlements
  • Articles and FAQ

Usage Based Billing


  • Understanding Usages
  • Setting up Usage Based Billing
  • Metered Billing
  • Articles and FAQ

Chargebee CPQ


  • Chargebee CPQ
  • Chargebee CPQ for Salesforce
  • Chargebee CPQ for HubSpot

Invoices, Credit Notes, and Quotes


  • Invoices
  • Credit Notes
  • Quotes [Legacy]
  • Transactions
  • Articles and FAQ

Taxes


  • Overview
  • Configuring Taxes
  • Country-specific Taxes
  • Articles and FAQ

Hosted Capabilities


  • Overview
  • Hosted Checkout
  • Hosted Self-Serve Portal
  • Hosted Pages Features
  • Additional Hosted Pages
  • Payment Components
  • Pricing Table
  • Managing Payments with Chargebee.js
  • Mobile-Optimized Hosted Pages
  • Articles and FAQ

Site Configuration


  • Users & Roles
  • Custom Fields & Metadata
  • Approvals
  • Mandatory Fields
  • File Attachments & Comments
  • Advanced Filter Options
  • Multicurrency Pricing
  • Multi-decimal Support
  • Configuring Reason Codes
  • Events and Webhooks
  • API Keys
  • Time Zone
  • Time Machine
  • Transfer Configurations
  • Articles and FAQ

Multi Business Entity


  • Multi Business Entity Overview
  • Customer Transfer Overview
  • Articles and FAQ

Mobile Subscriptions


  • Overview
  • Omnichannel Subscriptions
  • Omnichannel One-Time Orders
  • Mobile Subscriptions (Legacy)

Reports and Analytics


  • RevenueStory
  • Home Dashboard
  • Frequently Asked Questions
  • FAQs for Classic Reports Sunset
  • Articles and FAQ

Integrations


  • Sales
  • Customer Support and Success
  • Finance
  • Tax
  • Marketing
  • Stitch
  • Collaboration
  • Contract Management
  • Ecommerce Management
  • Articles and FAQ

Data Privacy & Security


  • Two Factor Authentication
  • SAML Single Sign-On
  • System for Cross-Domain Identity Management (SCIM)
  • EU-GDPR
  • Consent Management
  • Personal Data Management
  • Compliance Certificates
  • HIPAA Guidelines
  • PCI Recommendations and Integration Types
  • Articles and FAQ

Data Operations


  • Bulk Operations
  • Migration
  • Articles and FAQ
  1. Billing
  2. Customers
  3. Articles and FAQ
  4. Configure Multiple Languages
  1. Billing
  2. Customers
  3. Articles and FAQ
  4. Configure Multiple Languages

How do I setup Prepaid Credit Packs that customers can purchase and use for their subscription?

Your business model might require you to setup prepaid credit packs that your customers can then buy and use within your application.

In such cases, you would typically want to,

  • Setup a way for them to select initial credit package and purchase it

  • Offer them a way to replenish their credits or choose a different credit pack on an ongoing basis

  • Offer them a way to choose not to top up with more credits

A scenario like this is possible in Chargebee using our APIs. To start with,

  1. Create your base plans with price set as $0 (or whatever the base fee that you would charge your customer as minimum amount)

  2. Create non-recurring quantity based** **addons to handle credit packages

  3. List your addon packages in your website, along with an option to choose quantity. You can also have a flat-fee based subscription plan and a credit based plan. In this case, you can create multiple plans in Chargebee and list them along with addons

  4. After user selects the plan in your website, you can show them a dropdown containing the addons, so that the customer could select how many packs of credits they want to purchase. You can include a custom Javascript within the form that would ensure they select an addon before checking out.

  5. Once the user clicks Checkout, pass the selected addon along with the plan specific hosted page URL.

  6. On successful payment, you'll receive a Payment Succeeded webhook which would also help you with the addon quantity.

  7. Activate their subscription to your application accordingly and track their credit balance in your end

  8. When their credit balance is running low, you can show them a popup within your application asking them to replenish their credit balance.

  9. If they select Yes, you can call the Create Invoice for Addon API to include the addon they selected at the time of subscriptions and charge them immediately.

  10. You can also use Charge Addon at Term End API to schedule the charge to be charged at the time of their renewal, instead of an immediate charge.

  11. If they select No, you can call the Cancel Subscription API with end_of_term parameter as true to schedule the subscription for cancellation at term end.

  12. You can also offer another option (ex: "Change"), on clicking which, they could be shown the list of addons again and select the number of credits they want to purchase.

  13. You can then trigger the API call immediately as explained earlier to charge them for the credit pack and get the changed details via webhooks and update your records accordingly.

As these are API driven, you can hide the logic from users and present them with a seamless checkout and top-up experience.

Related Articles

How to allow end-user/ customer to choose a language in checkout/self service portal?
What is Localized in Chargebee?
How to translate the Save this payment method text on pay now link?
Language pack - upload error
After language translation, a few words on invoice are still in English. Why?
'"Extra key :" error in the Language pack. How to resolve this?'
I can't find a CSV file where I have all the key buttons' names and descriptions for checkout and customer portal?
'Language Pack Error: Unwanted folder (Folder other than language folder)'
How to edit the GoCardless Sepa mandate message on checkout?
How to translate the terms 'Invoice' and 'Paid' on an invoice?
How to download the language pack for Chargebee?
How to edit the default languages translations given in Chargebee?
How languages are set for customers in Chargebee?
How to set localized payment instructions for bank transfer?
Where to edit the tax rate description on the invoice PDF?
How to change the text of 'Update Payment Method' button on the email?
How to rename payment method on checkout?
How to rename 'Canceled' field subscription status on portal?

Show more

Was this article helpful?