@jasonbischak I’d personally just redirect to a Checkout Session to complete the payment. Cashier’s default webhook handler will then create the subscription in your database if needed: https://github.com/laravel/cashier-stripe/blob/f3c84483d757e34ccc720e92bd2723e75086fb53/src/Http/Controllers/WebhookController.php#L83-L91
Dec 4, 2024
2
Level 1
How to handle subscriptions with Laravel Cashier API backend and React frontend?
I'm confused about how the overall process works when handling subscriptions with a React frontend and a Laravel API backend. Since React needs to send the payment details directly to Stripe using Stripe JS (Elements), how does my Laravel API process what it needs to for subscription management?
In my application, users can join groups, and each group has a subscription price. These group subscriptions are stored in my database with pricing information. Any guidance and advice would be greatly appreciated!
Please or to participate in this conversation.