Skip to content

Commit

Permalink
Merge pull request solidusio#266 from seand7565/fix_core_lookup
Browse files Browse the repository at this point in the history
Fix Spree::Core lookup in gateway
  • Loading branch information
kennyadsl authored Oct 14, 2020
2 parents f0bf053 + cd3cbec commit a00774c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/solidus_paypal_braintree/gateway.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def create_profile(payment)
return if source.token.present? || source.customer.present? || source.nonce.nil?

result = braintree.customer.create(customer_profile_params(payment))
fail Spree::Core::GatewayError, result.message unless result.success?
fail ::Spree::Core::GatewayError, result.message unless result.success?

customer = result.customer

Expand Down

0 comments on commit a00774c

Please sign in to comment.