mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
guard against a stripe customer already being deleted
This commit is contained in:
@@ -65,7 +65,7 @@ module Spree
|
||||
def destroy_at_stripe
|
||||
stripe_customer = Stripe::Customer.retrieve(@credit_card.gateway_customer_profile_id, {})
|
||||
|
||||
stripe_customer&.delete
|
||||
stripe_customer&.delete unless stripe_customer.deleted?
|
||||
end
|
||||
|
||||
def stripe_account_id
|
||||
|
||||
Reference in New Issue
Block a user