- Added image_url to credit card readonly attributes. (Thanks, @maxkaplan)
- Fix propagation of braintree reported errors to associations in merchant accounts. (Thanks, @twalpole)
- Do not raise exception on gateway rejected transactions. (Thanks, @murtyk)
- Added
service_fee_amount
toBraintreeRails::Transaction
. (Thanks, @KELiON) - Enhanced validation error parsing so that they can be customized/i18n-ed
- Fixed deprecation warnings about validator setup. (Thanks, @JWesorick)
- Added Braintree Marketplace related models
- Allow device_data to be passed through for Fraud tools integration
- Fixed a bug where it failed to load some models under some circumstances. (Thanks, @mbhnyc and @tmak)
- Customer create/update now accepts an optional :credit_card params.
- Fixed a bug where it failed to update credit card expiry date when only expiration year changed. (Thanks, @vedanova)
- Fixed gemspec to only package necessary files to reduce the gem file size. (Thanks, @ivankocienski)
- Make all tests run in Rails 4.0
- Make all tests run in ruby 1.9.2
- Adding
reload
method for all models
- Fixed a bug where updating a vaulted card with
:options => {:verify_card => true}
is not working.
BraintreeRails
and its submodules are now eager loadable.BraintreeRails::CreditCard
'snumber
andcvv
are now updatable.country_name
,country_code_alpha2
,country_code_alpha3
andcountry_code_numeric
are now auto synced.country_name
validation error message is now more user friendly.Model#attributes
now always returns "pure" Hash, which only has symbol keys and simple valuesBraintreeRails::Address
now has two subclasses,BraintreeRails::BillingAddress
andBraintreeRails::ShippingAddress
, which you can have different validation logic added.BraintreeRails::Configuration.client_side_encryption_key
accessor is added for convenience.expiration_date
,expiration_month
andexpiration_year
are no longer cleared after create/update API calls. You get back plain values from the API call anyway. To me, there's even no need to encrypt those.- Only changed values will be submitted when trying to update a model object.
- Adding custom validations has a better and simpler way now.
- Fixed a bug where updating
expiration_date
on a vaulted card is ignored.