-
-
Notifications
You must be signed in to change notification settings - Fork 66
Feature: new billing flow #109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
@simonhamp I think this is ready to go. Once merged, I'll try to follow up with installing Livewire and polling on the order success page as we've discussed. I recommend pulling down this branch and configuring your setup locally to both confirm functionality but to also double check everything that the production server & services will need configured before deploying. |
@simonhamp Alrighty. Order success page has been converted to a Livewire page with 2 second polling. Test added for this page. livewire.polling.mp4 |
|
Bypasses Anystack billing.
Todos:
Before Deploying:
/stripe/webhook
route for thecustomer.subscription.created
event.env
vars must be saved to.env
:Functionality:
customer.subscription.created
event via webhook to know that a purchase has occurred. The webhook receiving route dispatches a job to query Stripe to retrieve the details of the user (email, etc) and (via dispatching a separate job) send an api request to anystack to create a contact & license.Future Improvements:
/order/{session} when the license key is NOT available

/order/{session} when the license key is available

license key notification
