How chargebee/chargebee-checkout-samples works
Chargebee Checkout Samples is a collection of browser integrations and backend examples, not one deployed application. The main user flow is selecting a checkout or portal action in a frontend, requesting a hosted-page/session URL from a backend, then handing that result to Chargebee.js. Separate examples demonstrate embedded card-field tokenization, framework-specific integrations, 3DS, and ecommerce catalog/checkout behavior. The graph focuses on documented or excerpted relationships; unsampled example internals and backend wiring are intentionally left unconnected.
Main entry points: src/App.js React examples · app.module.ts Angular module · main.js Vue bootstrap · src/App.js Hosted actions
Components 26
Hosted Checkout
- Hosted actions
api/front-end/react-app/src/App.js - Checkout routes
api/back-end/ruby/rails_app/config/routes.rb - Hosted-page API
api/back-end/ruby/rails_app/app/controllers/chargebee_controller.rb
Card Components
- jQuery card demos
components/jquery - React examples
components/react-app/src/App.js - Card example one
components/react-app/src/components/example1 - Card example two
components/react-app/src/components/example2 - Card example three
components/react-app/src/components/example3 - Card example four
components/react-app/src/components/example4 - Angular bootstrap
components/angular-app/src/main.ts - Angular module
components/angular-app/src/app/app.module.ts - Angular demos
components/angular-app/src/app - Angular routes
components/angular-app/src/app/app-routing.module.ts - Vue bootstrap
components/vue/cb-components-examples/src/main.js - Vue shell
components/vue/cb-components-examples/src/App.vue - Vue demos
components/vue/cb-components-examples/src/components
Ecommerce Flow
- Catalog requests
ecommerce-examples/example1/back-end/javascript/fetch-items.js - Item prices
ecommerce-examples/example1/back-end/javascript/fetch-item-prices.js - Variant lookup
ecommerce-examples/example1/back-end/javascript/fetch-variants.js - Commerce API
ecommerce-examples/example1/back-end/javascript/index.js - Create checkout
ecommerce-examples/example1/back-end/javascript/new-checkout.js - Checkout widget
ecommerce-examples/example1/front-end/javascript/cb-widget.js
3DS Integrations
- Adyen card flow
3ds-examples/adyen/card/script.js - Adyen element flow
3ds-examples/adyen/element/script.js - Chargebee 3DS flow
3ds-examples/chargebee-test/card/script.js
Other components
- Customer
Connections 12
- Customer → Hosted actions: chooses action
api/front-end/react-app/src/App.js - Hosted actions → Hosted-page API: requests hosted URL
api/front-end/react-app/src/App.js - Checkout routes → Hosted-page API: routes requests
api/back-end/ruby/rails_app/config/routes.rb - Angular bootstrap → Angular module: bootstraps
components/angular-app/src/main.ts - Angular module → Angular routes: imports
components/angular-app/src/app/app.module.ts - Angular module → Angular demos: declares
components/angular-app/src/app/app.module.ts - React examples → Card example one: routes to
components/react-app/src/App.js - React examples → Card example two: routes to
components/react-app/src/App.js - React examples → Card example three: routes to
components/react-app/src/App.js - React examples → Card example four: routes to
components/react-app/src/App.js - Vue bootstrap → Vue shell: renders
components/vue/cb-components-examples/src/main.js - Vue bootstrap → Vue demos: routes to
components/vue/cb-components-examples/src/main.js