Skip to content

Commit

Permalink
Merge pull request #304 from spark-solutions/fix-stripe-sending-number
Browse files Browse the repository at this point in the history
don't check source number when stripe token is present
  • Loading branch information
damianlegawiec authored Jan 19, 2018
2 parents e14b5b6 + 27f8a6c commit 3d3a907
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 3d3a907

Please sign in to comment.