BrainTree 91560交易无法保存在托管中

问题描述 投票:3回答:1

我有一个错误,我不确定如何使用BrainTree解决。所有数据都已更改,这仅是示例随机数是由javascript生成的,我的过程如下所示:

//Set the Configuration
Braintree_Configuration::environment($config['mode']);
                Braintree_Configuration::merchantId($config['merchant_id']);
                Braintree_Configuration::publicKey($config['public_key']);
                Braintree_Configuration::privateKey($config['private_key']);

                $result = Braintree_Transaction::sale(array(
                    'amount' => '3.00',
                    'merchantAccountId' => 'jane_doe_instance_3232',
                    'paymentMethodNonce' => '7w0dw',
                    'options' => array(
                        'submitForSettlement' => true,
                        'holdInEscrow' => true,
                        ),
                    'serviceFeeAmount' => "1.00"
                    )
                );

if($result -> success) {
        print_r($result->transaction->escrowStatus);
            print_r($result->transaction->serviceFeeAmount);
        $transaction = Braintree_Transaction::holdInEscrow($result -> transaction -> id);
}

现在这是正在发生的事情。付款过程和状态为“ submitted_for_settlement”,与文档所说的不同。现在这里很奇怪。

$result->transaction->escrowStatus

escrowStatus始终为空,不起作用

$result->transaction->serviceFeeAmount

打印服务费金额,所以可以。

然后当我尝试将交易保留在托管中时>>

    $transaction = Braintree_Transaction::holdInEscrow($result -> transaction -> id);

它引发错误91560事务无法保留在托管中。知道为什么会这样吗?

我有一个错误,我不确定如何使用BrainTree解决。所有数据都已更改,这仅是示例随机数是通过javascript生成的,我的过程如下所示://设置...

javascript php braintree
1个回答
0
投票

如果您使用的是主商人帐户ID,则无法托管付款。

© www.soinside.com 2019 - 2024. All rights reserved.