Stripe is a popular payment gateway that is used by many web applications. It is easy to set up and has a great API. In this section, we will show you how to set up Stripe.
Sign up for a new Stripe account and set up payment processing. Then, follow these steps:
Branding, upload your logo and select your color scheme.Customer Emails.Customer Portal for future useFraud Prevention > Rules and enable the first 3DS rule for extra security. It's a good idea to also activate the second 3DS rule.price_1Oig4tF0OUXipSzGYnvsYC1U)Publishable key and Secret key for later use and paste them into the .env file.
STRIPE_KEY=publishable-key
STRIPE_SECRET=ystripe-secret
Stripe is using webhooks to notify our app about payments. Laravel Cashier provides an endpoint /stripe/webhook to handle these webhooks.
When testing locally we need to configure Stripe to send webhooks to our local environment.