braintree / braintree_ruby

Braintree Ruby library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
446 stars 195 forks source link

submit_for_partial_settlement transaction method crashes #199

Closed condaa closed 4 years ago

condaa commented 4 years ago

Issue description

I created 'Authorized' transaction using some customer's payment method (which was of Credit Card type) Now, I'm trying to capture part of it using submit_for_partial_settlement method:

gateway.transaction.submit_for_partial_settlement(transaction_id, amount)

But it crashes giving:

Braintree::AuthorizationError: Braintree::AuthorizationError from /home/ahmedsalah/.rvm/gems/ruby-2.5.7/gems/braintree-2.102.0/lib/braintree/util.rb:53:in `raise_exception_for_status_code'

hollabaq86 commented 4 years ago

👋 Please contact Support who can help troubleshoot the issue with you. The exception AuthorizationErrror indicates there is an issue with your API keys or the data that was sent was malformed.