Class: OpCart::Subscription
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- OpCart::Subscription
- Defined in:
- app/models/op_cart/subscription.rb
Instance Method Summary collapse
Instance Method Details
#processor_object ⇒ Object
18 19 20 21 22 |
# File 'app/models/op_cart/subscription.rb', line 18 def processor_object @processor_object ||= customer.processor_object.subscriptions.retrieve processor_token rescue Stripe::InvalidRequestError => e raise e unless e..include? 'does not have subscription' end |