chargebee/laravel-react-starter-kit

Laravel Starter Kit for Billing with Chargebee.

Installs: 26

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 14

Forks: 0

Open Issues: 0

Language:TypeScript

Type:project

v1.0.2 2025-04-25 16:02 UTC

This package is not auto-updated.

Last update: 2025-04-25 16:04:02 UTC


README

Quickly set up billing in your Laravel application using Chargebee.

Getting Started

Installation

Run the following command in your terminal:

laravel new --using=chargebee/laravel-react-starter-kit

Then, navigate to your project folder:

cd your-project-name

Environment Configuration

  • Fill in the Chargebee-related .env variables (see .env.example).
  • ⚠️ Important: Run the server on port 8080 or 8443 for Chargebee checkout to work. You can do this by addingSERVER_PORT=8080 in .env file.

Initial Setup

Synchronizing Plans

Fetch your plans from Chargebee:

php artisan chargebee:fetch-plans

Webhook Configuration

Set up a webhook using either of these options:

Using Ngrok

Here is a short tutorial on getting started with Ngrok.

If ngrok gives you a URL like https://{abc}.ngrok-free.app, set your webhook URL as:
🔗 https://{abc}.ngrok-free.app/chargebee/webhook

Using Cloudflare Tunnel

Here is a short tutorial on how to configure tunnel on Cloudflare to test webhook.

If Cloudflare Tunnel gives you a URL like https://{your-tunnel-name}.trycloudflare.com, set your webhook URL as:
🔗 https://{your-tunnel-name}.trycloudflare.com/chargebee/webhook

Note: Don't forget to add this webhook URL in your Chargebee dashboard.

Running Your Application

Start the application using:

composer run dev