braintree / braintree_java

Braintree Java library
https://developer.paypal.com/braintree/docs/start/overview
MIT License
158 stars 98 forks source link

How to refund a transaction with status "submitted for settlement". #98

Closed chenxing-luckysky closed 3 years ago

chenxing-luckysky commented 3 years ago

General information

Issue description

after a customer make an order, and he refund it partially and immediately. how can I refund a transaction with status "submitted for settlement". refund only works for transactions that with status"settled"and "settling". I try to clone a transaction and void the old one, it give error that Transaction cannot be cloned if payment method stored in vault. Can anyone give me an idea that how to refund it?

sestevens commented 3 years ago

Hi @chenxing-luckysky, in this case you'll need to void the transaction rather than refund it. You may want to take a look at our support article on refunds and voids.