Closed juan-m-medina closed 7 months ago
Turned out to be this issue was due to a stored YAML copy of the prior Braintree::Customer
layout of the library that was being read using unsafe_load
. This caused the failure to happen late in the call stack - should have failed to load to start with, instead of filling the missing fields with nil
.
General information
Issue description
Attempting to retrieve
payment_methods
from customer fails. This is because thepayment_methods
ends up as anil
value due to concatenating anil
@sepa_direct_debit_accounts
.Sample test call for version 4.9.0
Same exact call for version for version 4.10.0
Lines related to issue: https://github.com/braintree/braintree_ruby/commit/7a013357548e56c0cbed536dcb61a9141b0d3116#diff-b73d16263b6983fda69a7[…]0a13cd1ec916bf38e7bee67eR93 https://github.com/braintree/braintree_ruby/commit/7a013357548e56c0cbed536dcb61a9141b0d3116#diff-b73d16263b6983fda69a7[…]a13cd1ec916bf38e7bee67eR127