diff --git a/app/models/solidus_paypal_braintree/gateway.rb b/app/models/solidus_paypal_braintree/gateway.rb index 040fd320..8901816d 100644 --- a/app/models/solidus_paypal_braintree/gateway.rb +++ b/app/models/solidus_paypal_braintree/gateway.rb @@ -4,8 +4,7 @@ module SolidusPaypalBraintree class Gateway < ::Spree::PaymentMethod include RequestProtection - class Error < StandardError; end - class TokenGenerationDisabledError < Error; end + class TokenGenerationDisabledError < StandardError; end # Error message from Braintree that gets returned by a non voidable transaction NON_VOIDABLE_STATUS_ERROR_REGEXP = /can only be voided if status is authorized/