脑树支付网关:金额结算

时间:2016-03-17 14:29:27

标签: php payment-gateway braintree

我在我的网站上使用脑树作为支付网关,最初我正在授权付款,几分钟后我会将其提交以便解决,但它会给我们以下错误:

结算金额为: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

提交金额是否有时间限制?

1 个答案:

答案 0 :(得分:0)

最后我得到了我的问题的答案

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

创建市场交易并传递服务费时,您可以选择最初授权总交易金额,稍后再提交较小金额。问题是指定的服务费不能更改或降低,因此您需要提交至少可以支付此服务费的金额。

例如,交易92vsvs的授权价格为187.50美元,服务费为32.61美元。至少,您可以提交$ 32.61美元作为结算。您可以提交高于$ 32.61美元的任何金额用于结算,但没有更低的价格。如果您仅提交32.61美元用于结算,则不会向该子商家发送任何资金,因为在收取服务费后没有剩余资金。