-
Notifications
You must be signed in to change notification settings - Fork 63
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
Stripe Checkout Redirection #212
Comments
So the rub I'm seeing is it looks like this will need to be a browser redirect, which means that our users will leave the page they've been filling out and be taken to a Stripe.com page 🤔 Their intended process would be like:
So, with the current UX flow, we would need to maintain their Send Letter page information somewhere (I'd suggest frontend ...unless we can do something like opening the Stripe.com page OAuth flow within a child window rather than allowing it to navigate away from our Send Letter page. 💡 I would bet that is probably possible but would need more investigation. |
Would it make sense to change the user flow so the user is redirected back to the same page after the stripe payment, so stripes success page would return to the same page, and then the user can press "Send Letter" which will actually send the letter. Either way, I think we would have to store the Send Letter page information somewhere and also have stripe validation as mentioned here. It seems like stripe removed modal support recently so redirect might be needed but definitely requires more research. I did get the checkout redirect working through your way, and seems like apple/google pay and coupon code is correctly configured. Screen.Recording.2022-05-06.at.11.02.32.AM.mov |
Task list: |
Resolved the redirections and cors issues |
I'm having the same CORS issue when using |
were you able to fix this? coz am having same issue on my end |
Try this solution... for me the stripe API keys had to be set in the next.config.js file. |
Updating the prerequisites and postgresql contributing documentation for Linux
Issue: Running into CORs problems when redirecting from stripe so tried this fix:
https://stackoverflow.com/questions/68630229/stripe-checkout-example-running-into-cors-error-from-localhost
I updated the backend logic in checkout.js to the above which removes the CORs issue and is giving a 200 success message but I cannot figure out how to redirect the URL in the front-end.
Branch: stripe-implementation
The text was updated successfully, but these errors were encountered: