module SolidusSubscriptions::Config
Attributes
failure_dispatcher_class[W]
This handler is called when an order cant be placed for a group of installments
out_of_stock_dispatcher[W]
This handler is called when installemnts cannot be fulfilled due to lack of stock
payment_failed_dispatcher_class[W]
This handler is called when a payment fails on a subscription order
success_dispatcher_class[W]
Processing Event handlers These handlers are pluggable, however it is highly encouraged that you subclass from the the dispatcher you are replacing, and call super from within the dispatch method (if you override it)
This handler is called when a susbcription order is successfully placed.
Public Class Methods
default_gateway(&block)
click to toggle source
# File lib/solidus_subscriptions/config.rb, line 35 def default_gateway(&block) return @gateway.call unless block_given? @gateway = block end
failure_dispatcher_class()
click to toggle source
# File lib/solidus_subscriptions/config.rb, line 18 def failure_dispatcher_class @failure_dispatcher_class ||= ::SolidusSubscriptions::FailureDispatcher end
out_of_stock_dispatcher_class()
click to toggle source
# File lib/solidus_subscriptions/config.rb, line 31 def out_of_stock_dispatcher_class @out_of_stock_dispatcher_class ||= ::SolidusSubscriptions::OutOfStockDispatcher end
payment_failed_dispatcher_class()
click to toggle source
# File lib/solidus_subscriptions/config.rb, line 24 def payment_failed_dispatcher_class @payment_failed_dispatcher_class ||= ::SolidusSubscriptions::PaymentFailedDispatcher end
success_dispatcher_class()
click to toggle source
# File lib/solidus_subscriptions/config.rb, line 11 def success_dispatcher_class @success_dispatcher_class ||= ::SolidusSubscriptions::SuccessDispatcher end