diff --git a/app/models/solidus_paypal_braintree/gateway.rb b/app/models/solidus_paypal_braintree/gateway.rb index e9f13657..130a7b9a 100644 --- a/app/models/solidus_paypal_braintree/gateway.rb +++ b/app/models/solidus_paypal_braintree/gateway.rb @@ -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