定制 chargebee/laravel-react-starter-kit 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chargebee/laravel-react-starter-kit

Composer 安装命令:

composer create-project chargebee/laravel-react-starter-kit

包简介

Laravel Starter Kit for Billing with Chargebee.

README 文档

README

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 

统计信息

  • 总下载量: 220
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 19
  • 点击次数: 8
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 19
  • Watchers: 14
  • Forks: 5
  • 开发语言: TypeScript

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-04-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固