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