lib/pay.rb in pay-2.1.2 vs lib/pay.rb in pay-2.1.3

- old
+ new

@@ -103,11 +103,17 @@ end class BraintreeError < Error attr_reader :result - def initialize(result) + def initialize(result=nil) @result = result + end + end + + class BraintreeAuthorizationError < BraintreeError + def message + "Either the data you submitted is malformed and does not match the API or the API key you used may not be authorized to perform this action." end end class InvalidPaymentMethod < Error attr_reader :payment