Module: NoCheckout::Stripe::CheckoutSession
- Extended by:
- ActiveSupport::Concern
- Included in:
- CheckoutSessionsController
- Defined in:
- app/controllers/nocheckout/stripe/checkout_session.rb
Constant Summary collapse
- STRIPE_CALLBACK_PARAMETER =
Unescaped placeholder for Stripe to insert the Checkout Session ID.
"{CHECKOUT_SESSION_ID}".freeze
- ESCAPED_STRIPE_CALLBACK_PARAMETER =
Escaped version that Rails will emit.
CGI.escape(STRIPE_CALLBACK_PARAMETER).freeze
- Stripe =
Hoist the Stripe constant for easier access.
::Stripe
Instance Method Summary collapse
-
#new ⇒ Object
Creates a new Checkout Session and redirects to it.
Instance Method Details
#new ⇒ Object
Creates a new Checkout Session and redirects to it.
25 26 27 |
# File 'app/controllers/nocheckout/stripe/checkout_session.rb', line 25 def new redirect_to @checkout_session.url, allow_other_host: true end |