Module: SpreeStripe::CustomDomainDecorator
- Defined in:
- app/models/spree_stripe/custom_domain_decorator.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.prepended(base) ⇒ Object
3 4 5 6 7 8 |
# File 'app/models/spree_stripe/custom_domain_decorator.rb', line 3 def self.prepended(base) base.after_create :register_stripe_domain base.store_accessor :private_metadata, :stripe_apple_pay_domain_id base.store_accessor :private_metadata, :stripe_top_level_domain_id end |
Instance Method Details
#register_stripe_domain ⇒ Object
10 11 12 13 14 |
# File 'app/models/spree_stripe/custom_domain_decorator.rb', line 10 def register_stripe_domain return if store.stripe_gateway.blank? SpreeStripe::RegisterDomainJob.perform_later(id, 'custom_domain') end |