Sha256: ca8d0327bbffc6096fa8c6de5faefd5dbddfc671d2541060f91df2ac5907bcf8

Contents?: true

Size: 689 Bytes

Versions: 2

Compression:

Stored size: 689 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'}

      after_initialize :set_api_key
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_account_recurring-1.1.5 app/models/spree/recurring/stripe_recurring.rb
spree_account_recurring-1.0.7 app/models/spree/recurring/stripe_recurring.rb