Each client library has a way to resolve transactions in Sandbox immediately. For PHP, it’s in the TestHelper:
< /p>
class Braintree_TestHelper
{
.. .
public static function settle($transactionId)
{
$http = new Braintree_Http (Braintree_Configuration::$global);
$path = Braintree_Configuration::$global->merchantPath().'/Transactions/'. $transactionId.'/Settle';
$http->put( $path);
}
.. .
}
In production, any transaction you run will usually show up immediately as a charge on your credit card , But it is not “permanent”, and the funds will not actually move until the transaction is settled. In other words, even though settlement may take 24 hours, the charges will not take long to appear on the card. < /p>
Whenever I create a transaction through the Braintree API or through their sandbox, it will go through many states, such as authorization, submission for settlement, settlement…all of these It takes about 24 hours. I want to ask, how can I create a transaction in the sandbox/api and resolve or dispute it immediately. I don’t know why it takes so much time… For example, my credit card is charged immediately for shopping online. How to achieve the same goal through the braintree payment sandbox?
I work in Braintree. It looks like we have replied to your support email, but I will post this question to others here.
p>
Each client library has a way to immediately resolve transactions in the Sandbox. For PHP, it’s in the TestHelper:
class Braintree_TestHelper
{
.. .
public static function settle($transactionId)
{
$http = new Braintree_Http(Braintree_Configuration::$global);
$path = Braintree_Configuration::$global->merchantPath().'/transactions/'. $transactionId.'/settle';
$http->put($path);
}
.. .
}
In production, any transaction you run will usually immediately show up as a charge on your credit card, but it is not “permanent” and is Before the transaction is settled, the funds will not actually move. In other words, even if settlement may take 24 hours, it will not take long for the charges to appear on the card.
p>