-
Notifications
You must be signed in to change notification settings - Fork 205
Open
Description
When I upgrade to 4.33.0, I get the following error when I run my specs. Everything works great in 4.32.0 and below.
Failure/Error:
result = gateway.transaction.sale(
amount: input.amount,
payment_method_nonce: input.nonce,
options: {submit_for_settlement: true},
customer: {
first_name: input.first_name,
last_name: input.last_name,
email: input.email
},
billing: {
NoMethodError:
undefined method 'each' for an instance of String
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/base_module.rb:20:in 'Braintree::BaseModule::Methods#set_instance_variables_from_hash'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction.rb:294:in 'Braintree::Transaction#initialize'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction.rb:411:in 'Class#new'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction.rb:411:in 'Braintree::Transaction._new'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction_gateway.rb:36:in 'Braintree::TransactionGateway#_handle_transaction_response'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction_gateway.rb:378:in 'Braintree::TransactionGateway#_do_create'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction_gateway.rb:21:in 'Braintree::TransactionGateway#create'
# /home/ben/.rbenv/versions/3.4.4/lib/ruby/gems/3.4.0/gems/braintree-4.33.0/lib/braintree/transaction_gateway.rb:98:in 'Braintree::TransactionGateway#sale'
litwak, ArturT and Fjan
Metadata
Metadata
Assignees
Labels
No labels