StripeCustomer Model Not Updating #3
Unanswered
simon-tarr
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello, I'm having some issues with the final part of the (very comprehensive) tutorial regarding webhooks.
I can successfully click the 'Subscribe' button on my website - this redirects me to Stripe and I fill out the checkout page with the dummy card details. I then get redirected to localhost:8000/success. I can see that the order has gone through successfully on Stripe as I can see the new customer in my Stripe Dashboard. Further, I do get what appears to be a successful trace on Stripe CLI:
After some time (perhaps 20 seconds or so) Stripe CLI then presents me with:
My webserver console looks like this after submitting the order on the Stripe website:
I took the liberty of visiting /app/webhook and saw the following error:
I'm not sure if this URL is supposed to be anything but error if you're not in the middle of a subscription transaction (I suspect not) but I thought it might be useful information to help debug.
The result of this is that the Stripe order isn't linked to the signed in user - the model
StripeCustomer
remains blank and doesn't populate with the new subscription details . Do you know why this final link between Stripe and my DB model isn't working?From what I can tell, I have all the necessary code from your repo incorporated into my website.
Thank you for putting this guide together, it's been an excellent learning guide so far!
Beta Was this translation helpful? Give feedback.
All reactions