0
votes

I'm writing unit tests in PHP to test refunds. To do this, I make a charge, then pass the transaction ID to the refund method.

Obviously I cannot get the test to pass if the transaction is still settling. So I tried the Braintree_TestHelper::settle($transactionId) method. It turns out that that method is missing from /tests/TestHelper.php.

What alternative do I have now to settle the transaction immediately?

1

1 Answers

2
votes

Full disclosure: I work at Braintree. If you have any further questions, feel free to contact support.

You are looking for the function Braintree_Test_Transaction::settle().