Module: SpreeStripe::BaseHelper
- Defined in:
- app/helpers/spree_stripe/base_helper.rb
Instance Method Summary collapse
Instance Method Details
#current_stripe_gateway ⇒ Object
3 4 5 |
# File 'app/helpers/spree_stripe/base_helper.rb', line 3 def current_stripe_gateway @current_stripe_gateway ||= current_store.stripe_gateway end |
#current_stripe_payment_intent ⇒ Object
7 8 9 10 11 |
# File 'app/helpers/spree_stripe/base_helper.rb', line 7 def current_stripe_payment_intent return if current_stripe_gateway.nil? @current_stripe_payment_intent ||= SpreeStripe::CreatePaymentIntent.new.call(@order, current_stripe_gateway) end |