Skip to content

Commit

Permalink
don't check source number when stripe token is present
Browse files Browse the repository at this point in the history
  • Loading branch information
bbonislawski committed Jan 19, 2018
1 parent e14b5b6 commit 27f8a6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/spree/gateway/stripe_gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def create_profile(payment)
}.merge! address_for(payment)

source = update_source!(payment.source)
if source.number.blank? && source.gateway_payment_profile_id.present?
if source.gateway_payment_profile_id.present?
creditcard = source.gateway_payment_profile_id
else
creditcard = source
Expand Down

0 comments on commit 27f8a6c

Please sign in to comment.