Skip to content

Moaz98Hamde/subscription-system

Repository files navigation

Laravel Logo

Laravel Logo

Subscription system

Subscription system built on top of Laravel Framework and stripe API

installation & setup

create account on stripe : https://stripe.com/

Create new product & name it 'plan' with two types of subscriptions (prices) monthly & yearly

Install composer packages

$ composer install

Create new database

Fill the following env variables in .env file

DB_DATABASE

DB_USERNAME

DB_PASSWORD

STRIPE_KEY

STRIPE_SECRET

PRODUCT_NAME=plan

MONTHLY_SUB_ID

MONTHLY_PRICE

YEARLY_SUB_ID

YEARLY_PRICE

Run migrations & seeds

$ php artisan migrate --seed

Run Subscription system app

$ php artisan serve

Seeded admin email: [email protected] , password: secret

Test card number: 4242 4242 4242 4242 , MM/YY: 0424, CVV: 242, ZIP: 42424

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published