spree/spree_gateway — pull request #125 by HoyaBoya (2014-01-06 21:14:54+00:00)
Title: Update expiry from Braintree

NOTE: There is 1 new failing test until the corresponding commit in Spree Core is accepted as well.

https://github.com/HoyaBoya/spree_gateway/blob/9bbf1a3b796642b25c1b13677438e73c1a9ad459/spec/models/gateway/braintree_gateway_spec.rb#L252-L255

This allows month/year to be updated from Braintree along with CC last_digits.

If Braintree JS encryption is used per their recommendation....

https://www.braintreepayments.com/docs/javascript/encryption/overview

...then expiry will never be set to the proper unencrypted value in Spree::CreditCard unless we read it from their response like CC number.

need to set encrypted values to false (see spree/spree pull request)