Module: Spree::ApplePayOrderDecorator
- Defined in:
- app/models/spree/apple_pay_order_decorator.rb
Instance Method Summary collapse
Instance Method Details
#confirmation_required? ⇒ Boolean
3 4 5 6 7 8 9 10 11 12 |
# File 'app/models/spree/apple_pay_order_decorator.rb', line 3 def confirmation_required? return false if paid_with_apple_pay? # Little hacky fix for #4117 # If this wasn't here, order would transition to address state on confirm failure # because there would be no valid payments any more. Spree::Config[:always_include_confirm_step] || payments.valid.map(&:payment_method).compact.any?(&:payment_profiles_supported?) || confirm? end |
#paid_with_apple_pay? ⇒ Boolean
14 15 16 |
# File 'app/models/spree/apple_pay_order_decorator.rb', line 14 def paid_with_apple_pay? payments.valid.any?(&:apple_pay?) end |