php - 在 Braintree 中创建子商家账户会出现“主商家账户 ID 无效”错误
问题描述
$masterMerchantAccountId = $this->config->item('merchantId_sandbox');
$merchantAccountParams = [
'individual' => [
'firstName' => $inputData['firstName'],
'lastName' => $inputData['lastName'],
'email' => $merchantIndividualEmail,
'dateOfBirth' => $inputData['dob'],
'address' => [
'streetAddress' => $merchantIndividualAddress,
'locality' => $merchantAccountLocality,
'region' => $merchantAccountRegion,
'postalCode' => $inputData['zipCode'],
]
],
'funding' => [
'descriptor' => $merchantFundDescriptor,
'destination' => Braintree\MerchantAccount::FUNDING_DESTINATION_BANK,
'accountNumber' => $merchantFundAccount,
'routingNumber' => $merchantFundRoutingNo,
],
'tosAccepted' => true,
'masterMerchantAccountId' => $masterMerchantAccountId
];
$merchantAccountResponse = $gateway->merchantAccount()->create($merchantAccountParams);
我正在使用此代码通过 Braintree 沙箱创建子商家帐户,但我收到来自 Braintree 的错误。错误如下。
“主商户账号无效”
我该如何解决这个问题?
我想在我的主商户账户中做子商户账户,客户将向子商户付款。
通过正常工作的 Braintree 沙箱创建的客户。它没有给出错误,只有子商家帐户创建给出了错误。
解决方案
推荐阅读
- c++ - 虚幻引擎 C++ 中的 TArray 浮动错误
- python - 为集成终端设置环境变量
- java - 当扫描仪位于输入的最后时如何使循环停止
- django - 当我尝试 git push 我的应用程序时,Heroku 使用了错误的 requirements.txt
- postgresql - PostgreSQL 密码更改
- r - 如何使用 slackr 改进 slack 消息的格式?
- html - 为什么“负边距和浮动应用元素”重叠?
- virtual-reality - 如何在点击热点时在 google vr 视图中添加弹出窗口。
- r - 自定义刻度线/标签出现在绘图表面图中的 x 和 y 轴上?
- android - 在两个 Cordova 应用程序之间连接和传递数据