Braintree - Why braintree transactions created via API, or via sandbox, take so much time before settled?

前端 未结 1 1991
小蘑菇
小蘑菇 2021-01-06 13:57

Whenever, I create a transaction via Braintree API, or via their sandbox, it goes through many statuses like Authorized, Submitted for Settlement, Settled ... and all this t

相关标签:
1条回答
  • 2021-01-06 14:40

    I work at Braintree. It looks like we already responded to your support email, but I'll post this here for others who have the same problem.

    Each client library has a method to instantly settle a transaction in 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 that you run will generally show up as a charge on a credit card instantly, but it isn't "permanent" and the money won't actually move until the transaction has settled. In other words, even though settlement can take 24 hours, the charge doesn't take that long to show up on the card.

    0 讨论(0)
提交回复
热议问题