Ploi Core
Ploi Core

Using Stripe

With Ploi Core, it is possible to use Stripe for your billing.

Head over to https://dashboard.stripe.com/apikeys to get your API keys.

Next, enter these values in your .env configuration file:

STRIPE_KEY=pk_***
STRIPE_SECRET=sk_***
CASHIER_MODEL=App\Models\User

Next, we'll need to create products in Stripe that you can attach to your packages. Head over to https://dashboard.stripe.com/products and create a new product.

After you've created, copy the Price ID:

CleanShot 2020-10-01 at 14.47.40

After that, head over to your Ploi Core installation and go to the administration area -> packages. Edit the package you want to attach the product from Stripe too:

CleanShot 2020-10-01 at 14.54.58

To verify it is working, head over to your profile and check if your packages are listed there.

CleanShot 2020-10-01 at 14.57.04