I have a sandbox testing environment and whenever I do a partial refund it completely voids the transaction on Braintree.
I’ve done this before it was settled completely. Might that be the issue? Or is it an issue because it’s in TEST MODE?
Also, after I do the refund, which it voids, I did a full payment so the invoice was payed for. But it still showed -10€ in outstanding balance. Looks like a math bug, it should be 0€ as everything was payed for, but the refund messed it up.
On a related note, what’s the point of the Test mode checkbox? The Braintree api keys are different for sandbox and production.
I think that explains it. Checking the code it looks like we try voiding with Braintree if we get a 91506 error code. From their docs it’s: Cannot refund a transaction unless it is settled. Transaction status must be settled to refund it.
I see the problem with the -10, we’ll make sure to include a fix with our next release.
I imagine the test checkbox is used to know which Braintree endpoint to use (production vs testing).
No, we don’t support payment webhooks with Braintree.
Just for this reason I left some transactions and waited for them to Settle.
I then tried to refund 30€ from a 74.99€ transaction. But instead of refunding 30€ it refunded the whole 74.99€.
As I said this was a transaction that was already settled.
For the -10, that’d be great if a fix is incoming.
I noticed there’s already an update on git. Even though I installed through the ZIP file (with all the dependencies) can I just do a git pull, or do I need to copy the complete source code over?