Sha256: 3763fe5c8f89cafc5d0e37be6987a9d842a0caa55686b9a9379e6cc4f81b9b3b

Contents?: true

Size: 520 Bytes

Versions: 14

Compression:

Stored size: 520 Bytes

Contents

module Spree
  class Recurring < ActiveRecord::Base
    class StripeRecurring < Spree::Recurring
      module ApiHandler
        module SubscriptionEventApiHandler
          def retrieve_event(event_id)
            begin
              Stripe::Event.retrieve(event_id)
            rescue error_class => e
              logger.error "Stripe Event error: #{e.message}"
              errors.add :base, "Stripe Event error: #{e.message}"
              nil
            end
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

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