Module: SpreeStripe::StoreDecorator
- Defined in:
- app/models/spree_stripe/store_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/store_decorator.rb', line 3 def self.prepended(base) base.store_accessor :private_metadata, :stripe_apple_pay_domain_id base.store_accessor :private_metadata, :stripe_top_level_domain_id base.after_commit :register_stripe_domain, on: :update, if: -> { code_previously_changed? } end |
Instance Method Details
#billing_name ⇒ Object
14 15 16 |
# File 'app/models/spree_stripe/store_decorator.rb', line 14 def billing_name name end |
#stripe_gateway ⇒ Object
10 11 12 |
# File 'app/models/spree_stripe/store_decorator.rb', line 10 def stripe_gateway @stripe_gateway ||= payment_methods.stripe.active.last end |