Laravel React Starter Kit

Laravel React Starter Kit stats

Downloads
66
Stars
5
Open Issues
0
Forks
1

View on GitHub →

Laravel Starter Kit for Billing with Chargebee.

Laravel Starter Kit for Billing with Chargebee Cashier

Quickly set up billing in your Laravel application using Chargebee.

Introduction

You can watch the below video for a quick video introduction of this starter kit and the Laravel Cashier for Chargebee package used in this starter kit.

Video introduction of Laravel Cashier for Chargebee and Starter Kit

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
chargebee photo

Billing Platform for Subscription Businesses.

Cube

Laravel Newsletter

Join 40k+ other developers and never miss out on new tips, tutorials, and more.


Chargebee Laravel React Starter Kit Related Articles

Chargebee Starter Kit for Billing in Laravel image

Chargebee Starter Kit for Billing in Laravel

Read article
Tighten logo

Tighten

We help companies turn great ideas into amazing apps, products, and services.

Tighten
Acquaint Softtech logo

Acquaint Softtech

Acquaint Softtech offers AI-ready Laravel developers who onboard in 48 hours at $3000/Month with no lengthy sales process and a 100 percent money-back guarantee.

Acquaint Softtech
Statamic logo

Statamic

The drop-in ready Laravel CMS you’re been waiting for. Go full-stack or headless, flat file or database – it’s up to you.

Statamic
No Compromises logo

No Compromises

Joel and Aaron, the two seasoned devs from the No Compromises podcast, are now available to hire for your Laravel project. ⬧ Flat rate of $9500/mo. ⬧ No lengthy sales process. ⬧ No contracts. ⬧ 100% money back guarantee.

No Compromises
Laravel Cloud logo

Laravel Cloud

Easily create and manage your servers and deploy your Laravel applications in seconds.

Laravel Cloud
LoadForge logo

LoadForge

Scalable load testing for web apps & APIs. Simulate real-world traffic and identify breaking points and performance limits with powerful, scalable load tests designed for Laravel.

LoadForge