Replies: 1 comment 1 reply
-
I would just have the modal submit to an action that creates a session and redirects to it. Then you have it nicely organized and you can still have the modals easily. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm looking to have various "upsell" modals across multiple views in my Rails project. I don't want to redirect to a "checkout" page, so in my case I'd need to have the checkout_session available in all controllers so I can use the session in my checkout button.
I was told that I could put it in my application controller:
Later on I realized in the Stripe web interface that there's a lot of
billing_portal.session.created
web hook events which I assume are connected to having it in the ApplicationController. I'd assume that also has an influence on the page load. What would you recommend in that case?Just link to a central checkout page or is there another way?
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions