【发布时间】:2016-07-28 10:03:03
【问题描述】:
$result = Braintree_Transaction::sale(array(
'merchantAccountId' => 'merchantAccountId',
"amount" => '45.00',
"creditCard" => array(
"number" => 'creditcardnumber',
"cvv" => 'cvv',
"expirationMonth" => $_POST["cc_month"],
"expirationYear" => $_POST["cc_year"]
),
'serviceFeeAmount' => $service_amount,
"options" => array(
"submitForSettlement" => true
)
));
我正在使用Braintree API。在沙箱中,我正在创建一个事务。 但是交易没有发生。错误在下面给出。
ERROR! Service fee not supported on master merchant account.
但是如果我注释掉下面的行。
'serviceFeeAmount' => $service_amount,
然后下单成功,我看不到收取多少交易费。
我想以服务费金额下订单。问题是我不明白如何在 Braintree 上创建 SUB MERCHANT ACCOUNT。一些答案是 here 和 here 给出但不理解。
【问题讨论】: