Great job! I was able to get everything outlined here working locally, but I am facing an issue when using the amplify hosting.
I am receiving a 403 error when redirecting to /payment-init. It will create the payment intent and the user, but will not get to the credit card screen. I am able to switch out the dev URL with local and can get through the whole thing to payment success in both the app and backend of Stripe. Not sure what the issue is yet in regards to authorization with the Amplify hosted site. If you have any idea let me know. Hopefully I get this figured out tomorrow.
Thank you for your response! Yes, that makes sense. I am just getting back to this project right now. The lambda function works with my local env, but not with the hosted site. If you have an example of how to set that up, please let me know. I will see if I can get that set up in the meantime and report back here.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great job! I was able to get everything outlined here working locally, but I am facing an issue when using the amplify hosting.
I am receiving a 403 error when redirecting to /payment-init. It will create the payment intent and the user, but will not get to the credit card screen. I am able to switch out the dev URL with local and can get through the whole thing to payment success in both the app and backend of Stripe. Not sure what the issue is yet in regards to authorization with the Amplify hosted site. If you have any idea let me know. Hopefully I get this figured out tomorrow.
Thanks again.
They init page is launching a lambda funtion, have you set that up with the right access?
Thank you for your response! Yes, that makes sense. I am just getting back to this project right now. The lambda function works with my local env, but not with the hosted site. If you have an example of how to set that up, please let me know. I will see if I can get that set up in the meantime and report back here.