脑树支付网关:金额结算

Brain-tree payment gateway: amount settlement

我在我的网站上使用 brain tree 作为支付网关,最初我授权支付,几分钟后我将提交它进行结算,但它给我们以下错误:

结算金额为:7 总授权金额为:[金额] => 187.50

我遇到以下错误:

**[_attribute:private] => amount
[_code:private] => 91551
[_message:private] => Settlement amount cannot be less than the service fee amount.**

有关更多详细信息,您会看到我收到的回复:

Braintree_Result_Error Object
(
    [success] => 
    [_attributes] => Array
        (
            [errors] => Braintree_Error_ErrorCollection Object
                (
                    [_errors:private] => Braintree_Error_ValidationErrorCollection Object
                        (
                            [_errors:private] => Array
                                (
                                )

                            [_nested:private] => Array
                                (
                                    [transaction] => Braintree_Error_ValidationErrorCollection Object
                                        (
                                            [_errors:private] => Array
                                                (
                                                    [0] => Braintree_Error_Validation Object
                                                        (
                                                            [_attribute:private] => amount
                                                            [_code:private] => 91551
                                                            [_message:private] => Settlement amount cannot be less than the service fee amount.
                                                        )

                                                )

                                            [_nested:private] => Array
                                                (
                                                )

                                            [_collection:protected] => Array
                                                (
                                                )

                                        )

                                )

                            [_collection:protected] => Array
                                (
                                )

                        )

                )

[params] => Array
    (
        [transaction] => Array
            (
                [amount] => 7
            )

    [controller] => transactions
    [action] => submit_for_settlement
    [merchantId] => 6tfkyqyqnqh6ydwk
    [id] => 92vsvs
)

[message] => Settlement amount cannot be less than the service fee amount.
[transaction] => Braintree_Transaction Object

那么提交金额有时间限制吗?

我终于得到了问题的答案

您遇到交易 92vsvs 的验证错误(91551 结算金额不能小于服务费金额)是因为您试图以 7.00 美元结算交易,这低于 32.61 美元的服务费金额。

在创建Marketplace交易并传递服务费时,您可以选择先授权交易总额,之后提交较小的金额。问题是指定的服务费无法更改或降低,因此您需要提交至少可以支付此服务费的金额。

例如,交易 92vsvs 授权为 187.50 美元,服务费为 32.61 美元。至少,您可以提交 32.61 美元用于结算。您可以提交高于 32.61 美元的任何金额进行结算,但不得低于此金额。如果您只提交了 32.61 美元用于结算,则不会向子商户发送任何资金,因为在收取服务费后没有剩余资金。