Class: Spree::StripeCustomer
- Inherits:
-
Base
- Object
- Base
- Spree::StripeCustomer
- Defined in:
- app/models/spree/stripe_customer.rb
Instance Method Summary collapse
Instance Method Details
#stripe_customer ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'app/models/spree/stripe_customer.rb', line 18 def stripe_customer stripe_customer = nil return nil if deleted_at.present? stripe_customer = Stripe::Customer.retrieve(stripe_customer_id) rescue StandardError destroy stripe_customer = nil ensure stripe_customer end |