diff --git a/app/models/solidus_paypal_braintree/transaction.rb b/app/models/solidus_paypal_braintree/transaction.rb index 1a42532a..cb0d7f49 100644 --- a/app/models/solidus_paypal_braintree/transaction.rb +++ b/app/models/solidus_paypal_braintree/transaction.rb @@ -18,8 +18,8 @@ class Transaction errors.add(:payment_method, 'Must be braintree') end if address && !address.valid? - address.errors.each do |field, error| - errors.add(:address, "#{field} #{error}") + address.errors.each do |error| + errors.add(:address, "#{error.attribute} #{error.message}") end end end