- 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_amounttoBraintreeRails::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
reloadmethod for all models
- Fixed a bug where updating a vaulted card with
:options => {:verify_card => true}is not working.
BraintreeRailsand its submodules are now eager loadable.BraintreeRails::CreditCard'snumberandcvvare now updatable.country_name,country_code_alpha2,country_code_alpha3andcountry_code_numericare now auto synced.country_namevalidation error message is now more user friendly.Model#attributesnow always returns "pure" Hash, which only has symbol keys and simple valuesBraintreeRails::Addressnow has two subclasses,BraintreeRails::BillingAddressandBraintreeRails::ShippingAddress, which you can have different validation logic added.BraintreeRails::Configuration.client_side_encryption_keyaccessor is added for convenience.expiration_date,expiration_monthandexpiration_yearare 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_dateon a vaulted card is ignored.