Sha256: dc84f714a77d2502a8ad053e3a17bac8629a7c45947facb7664d7bfbd9283836

Contents?: true

Size: 705 Bytes

Versions: 12

Compression:

Stored size: 705 Bytes

Contents

module Spree
  class Recurring < ActiveRecord::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'}

      def before_each
        set_api_key
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_account_recurring-1.1.4 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.6 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.5 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.1.3 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.1.2 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.4 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.3 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.2 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.1.1 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.1.0 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.1 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.0 app/models/spree/recurring/stripe_recurring.rb