Class: SolidusStripe::Configuration
- Inherits:
-
Object
- Object
- SolidusStripe::Configuration
- Defined in:
- lib/solidus_stripe/configuration.rb
Instance Attribute Summary collapse
-
#refund_reason_name ⇒ String
Spree::RefundReason#nameused for Stripe-generated refunds. -
#webhook_events ⇒ Array<Symbol>
register them in the Stripe dashboard.
-
#webhook_signature_tolerance ⇒ Integer
its creation.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
24 25 26 27 28 |
# File 'lib/solidus_stripe/configuration.rb', line 24 def initialize @webhook_events = [] @webhook_signature_tolerance = Stripe::Webhook::DEFAULT_TOLERANCE @refund_reason_name = Seeds::DEFAULT_STRIPE_REFUND_REASON_NAME end |
Instance Attribute Details
#refund_reason_name ⇒ String
22 23 24 |
# File 'lib/solidus_stripe/configuration.rb', line 22 def refund_reason_name @refund_reason_name end |
#webhook_events ⇒ Array<Symbol>
register them in the Stripe dashboard. For an event :foo, a matching
:"stripe.foo" event will be registered in Spree::Bus.
12 13 14 |
# File 'lib/solidus_stripe/configuration.rb', line 12 def webhook_events @webhook_events end |
#webhook_signature_tolerance ⇒ Integer
its creation. Defaults to Stripe::Webhook::DEFAULT_TOLERANCE.
17 18 19 |
# File 'lib/solidus_stripe/configuration.rb', line 17 def webhook_signature_tolerance @webhook_signature_tolerance end |