DEV Community

Discussion on: The guide to add Payments to your React Native App with Stripe, Expo and AWS Amplify

Collapse
 
jamesmalin profile image
James Malin

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.

Collapse
 
rpostulart profile image
rpostulart

They init page is launching a lambda funtion, have you set that up with the right access?

Collapse
 
jamesmalin profile image
James Malin

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.