Skip to content

Commit

Permalink
Only return card info for credit cards
Browse files Browse the repository at this point in the history
ApplePay and PayPal sources won't have that information.
  • Loading branch information
adammathys committed Mar 27, 2017
1 parent bb9cc10 commit 997301e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/solidus_paypal_braintree/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ def credit_card?
private

def braintree_payment_method
return unless braintree_client
return unless braintree_client && credit_card?
@braintree_payment_method ||= braintree_client.payment_method.find(token)
end

Expand Down

0 comments on commit 997301e

Please sign in to comment.