At this point, it's VERY out of date as Stripe has changed significantly.
Is there a refresh of these lessons somewhere, ie sample code for payments with Laravel (ideally using Cashier), Vue.js and Stripe?
I am looking for sample code for payments with Laravel (ideally using Cashier), Vue.js and Stripe. I found https://github.com/tnylea/laravel-cashier-examples but it doesnt come close to scratching the surface of the (old) Laracasts code.
If anyone has any sample code to share (for any of the pieces below) that would be much appreciated.
Tech Stack:
Laravel 7.* with Cashier back-end
Nuxt.js or Vue.js front-end
The functionality I have to build:
Checkout with Stripe elements (in Vue - or Nuxt frontend)
Accept Recurring Subscriptions
Trigger Welcome Email on subscription plan start (doesnt have to send the email, just a back-end hook is fine)
Cron: Invoice Email for subscription (before/after billing for SAAS)
Record the customer ID, Handle failed charges elegantly
Receive and respond to (any one) Webhook
Trigger Invoice Email on subscription plan start
Cancel subscription (and trigger email on subscription plan cancel)
I don't think you're going to find a project that worked out for copy and paste. All the information you need can already be found in the documentation: https://laravel.com/docs/7.x/billing#introduction
The repository you point can still be used as a reference, even though some things have changed ;)
Thanks @bobbybouwmann
I wasnt looking for a complete end to end solution, thats too much of an ask. Just pieces so I can flatten the curve and piece things together. I will start with the documentation and reverse engineering the old code.
That said, if you or anyone has any sample code to share (for any of the pieces above) that would be much appreciated.
Any help is welcomed. I'm trying to flatten the curve and save time so I can work on the other parts of my app.
@bobbybouwmann I have an existing Laravel 7 app with a lot of functionality. Does using Spark mean I'd have to start frm scratch and migrate everything to Spark? Or would I copy-and-paste from Spark into my Laravel 7 app?
Also what does it cost - do you get lifetime updates for Spark by paying $99 once?