Skip to content

Commit

Permalink
Merge pull request #6546 from andrewpbrett/sca-backend
Browse files Browse the repository at this point in the history
Fix #6543
  • Loading branch information
andrewpbrett authored Dec 17, 2020
2 parents 1269e5f + 13d6d2c commit 2d636c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/stripe/credit_card_clone_finder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ def initialize(card, stripe_account)
end

def find_cloned_card
return nil unless fingerprint = fingerprint_for_card(@card) && email = @card.user&.email
return nil unless fingerprint = fingerprint_for_card(@card)
return nil unless email = @card.user&.email

customers = Stripe::Customer.list({ email: email, limit: 100 }, stripe_account: @stripe_account)

Expand Down

0 comments on commit 2d636c8

Please sign in to comment.