【问题标题】:Braintree + esrow fundingBraintree + esrow 资金
【发布时间】:2018-03-20 00:10:42
【问题描述】:

我一直在 PHP 中实施 Braintree + escrow 资金。

我一直在使用 Braintree PHP 代码。

代码运行良好,我可以在 Braintree 沙箱仪表板中看到交易。

但我想先整合不起作用的托管资金。下面是代码示例。

require_once "braintree-php/lib/Braintree.php";
Braintree_Configuration::environment("sandbox");
Braintree_Configuration::merchantId("merchantID");
Braintree_Configuration::publicKey("public-key");
Braintree_Configuration::privateKey("private-key");


$result = Braintree_Transaction::sale(
  [
'amount' => '100.00',
 'merchantAccountId' => 'abc',
 'creditCard' => [
  'number' => '378282246310005',
      'expirationDate' => '12/18'
],
'options' => [
      'submitForSettlement' => true,
      'holdInEscrow' => true,
    ],
    'serviceFeeAmount' => "10.00"
  ]

);
if ($result->success) {
echo '<pre>';
print_r("success!: " . $result->transaction->id);
print_r("success!: " . $result->transaction->escrowStatus);
print_r($result->transaction->serviceFeeAmount);
$escow = Braintree_Transaction::holdInEscrow($result->transaction->id);
 } else if ($result->transaction) {
print_r("Error processing transaction:");
print_r("\n  code: " . $result->transaction->processorResponseCode);
print_r("\n  text: " . $result->transaction->processorResponseText);
} else {
echo '<pre>';
print_r("Validation errors: \n");

print_r($result->errors->deepAll());
}

这给了我以下错误。

1) Service fee not supported on master merchant account.
2) Transaction could not be held in escrow.

我通过选择美国作为国家创建了沙盒帐户。任何人都可以帮助我如何在 Braintree 付款期间获得托管资金以及我在代码中做错了什么。

我已经通过以下链接的代码成功创建了子商户。

On boarding Sub-merchants

【问题讨论】:

    标签: php braintree braintree-sandbox escrow


    【解决方案1】:

    全面披露:我在 Braintree 工作。如果您还有其他问题,请随时联系 support.

    我能够找到您的 Sandbox 帐户,并且您似乎注册了一个 Sandbox 帐户并指出印度是您的业务所在地,这就是您收到这些验证错误的原因,因为 Marketplace 与美国以外的任何国家/地区。

    为了测试市场功能,you'll need to sign up for a new Sandbox account,确保您选择美国作为您的国家/地区值。

    【讨论】:

    • 感谢您的回复...我已按照您的指示创建了另一个帐户,当时我已从该帐户中选择国家为美国(您的公司在哪里?)我面临同样的问题.仅供参考,我也可以从美国沙盒帐户创建子商家..请指导我我做错了什么?提前谢谢你:)
    • 如果您有更多详细信息,请告诉我。
    • 谢谢@AshPatel。您介意发送电子邮件至 support@braintreepayments.com,以便我们从您那里获得更多详细信息吗?非常感谢。
    • ThinkAboutIt : 我已向支持人员发送邮件..如果可以的话,请通过沙箱提供帮助..:) thanxx 提前。
    • ThinkAboutIt :我已经与支持人员进行了交谈,他们说市场现在在 Braintree 中不可用,这意味着我不能在我的 Braintree 支付网关中使用托管?
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-04-14
    • 2020-09-18
    • 2016-05-30
    • 2017-12-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多