Module: Spree::Payment::ProcessingDecorator
- Defined in:
- app/models/spree/payment/processing_decorator.rb
Instance Method Summary collapse
-
#process! ⇒ Object
@gem-override spree_core-5.3.6/app/models/spree/payment/processing.rb#process! ダウンロード商品のみの注文では auto_capture が「いいえ」でも purchase!(即時売上)し、それ以外は super。.
Instance Method Details
#process! ⇒ Object
@gem-override spree_core-5.3.6/app/models/spree/payment/processing.rb#process! ダウンロード商品のみの注文では auto_capture が「いいえ」でも purchase!(即時売上)し、それ以外は super。
7 8 9 10 11 12 13 14 |
# File 'app/models/spree/payment/processing_decorator.rb', line 7 def process! if should_auto_capture_for_digital_order? Rails.logger.info "[Payment] Auto-capturing digital-only order (order: #{order.number}, payment_method: #{payment_method.class.name})" purchase! else super end end |