【发布时间】:2019-01-13 11:35:44
【问题描述】:
我在使用 Braintree PHP SDK 进行 PayPal Express Checkout 交易时收到此错误:
"Payment instrument type is not accepted by this merchant account."
These是错误的详细信息:
"在提供支付方式令牌时,您的商家帐户必须配置为接受该令牌所代表的支付方式类型。"
这是代码:
public function createPayPalGateway() {
$gateway = new \Braintree_Gateway(array(
'accessToken' => 'access_token$production$**',
));
return $gateway;
}
// Charge Nonce
$result = $gateway->transaction()->sale([
'amount' =>$amount,
'paymentMethodNonce' => $nonce,
'options' => [
'submitForSettlement' => True
]
]);
但是,如何实现此配置?它在代码中吗?我无法访问 PayPal 帐户,经理刚刚向我发送了访问令牌。
【问题讨论】:
-
此错误可能与商家账户配置有关,建议您联系 Braintree Support support@getbraintree.com。他们可能需要您的merchant ID。
标签: php laravel-5 paypal braintree