Sha256: 808fec447bb604042cde455d657936997b930a6815e159d1adbb062cdd33ed84

Contents?: true

Size: 682 Bytes

Versions: 5

Compression:

Stored size: 682 Bytes

Contents

module Spree
  class Recurring < Spree::Base
    class StripeRecurring < Recurring
      include ApiHandler

      WEBHOOKS = ['customer.subscription.deleted', 'customer.subscription.created', 'customer.subscription.updated', 'invoice.payment_succeeded', 'invoice.payment_failed', 'charge.succeeded', 'charge.failed', 'charge.refunded', 'charge.captured', 'plan.created', 'plan.updated', 'plan.deleted']

      INTERVAL = { week: 'Weekly', month: 'Monthly', year: 'Annually' }
      CURRENCY = { usd: 'USD', gbp: 'GBP', jpy: 'JPY', eur: 'EUR', aud: 'AUD', hkd: 'HKD', sek: 'SEK', nok: 'NOK', dkk: 'DKK', pen: 'PEN', cad: 'CAD'}

      after_initialize :set_api_key
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
spree_account_recurring-2.0.0 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.3.1 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.2.1 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.3.0 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.2.0 app/models/spree/recurring/stripe_recurring.rb