Subscription system built on top of Laravel Framework and stripe API
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