gpt4 book ai didi

php - Paypal 方法 = DoDirectPayment #10759 错误

转载 作者:太空宇宙 更新时间:2023-11-03 15:45:37 25 4
gpt4 key购买 nike

我正在通过 DoDirectPayment 方法使用 Paypal 交易,我已经验证了我的 API 凭据大约 100 次;没错。

 Array (
[TIMESTAMP] => 0000-00-00T00:00:00Z
[CORRELATIONID] => 0000000000
[ACK] => Failure
[VERSION] => 56.0
[BUILD] => 000000
[L_ERRORCODE0] => 10759
[L_SHORTMESSAGE0] => Transaction cannot be processed.
[L_LONGMESSAGE0] => Please use a different payment card.
[L_SEVERITYCODE0] => Error
[AMT] => 0.50
[CURRENCYCODE] => USD
)

以上是我从 paypal 收到的回复。

我从这里尝试了所有卡片:https://www.paypalobjects.com/en_US/vhelp/paypalmanager_help/credit_card_numbers.htm

我的代码:

$request  = 'METHOD=DoDirectPayment';
$request .= '&VERSION=56.0';
$request .= '&USER='.$paypal_user;
$request .= '&PWD='.$paypal_pass;
$request .= '&SIGNATURE='.$paypal_sign;
$request .= '&CUSTREF=' . $post_id;
$request .= '&PAYMENTACTION=Authorization';
$request .= '&AMT='.$amount;
$request .= '&EXPDATE=' . $expmonth . $expyear;
$request .= '&CVV2=' . $ccv;
$request .= '&ACCT=' . $card_number;
$request .= '&CURRENCYCODE=USD';
$request .= '&IPADDRESS=' . urlencode($_SERVER['REMOTE_ADDR']);
$request .= '&CREDITCARDTYPE=' . $cardtype; // VISA AND ALL

$curl = curl_init($apiurl);
curl_setopt($curl, CURLOPT_PORT, 443);
curl_setopt($curl, CURLOPT_HEADER, 0);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_FORBID_REUSE, 1);
curl_setopt($curl, CURLOPT_FRESH_CONNECT, 1);
curl_setopt($curl, CURLOPT_POST, 1);
curl_setopt($curl, CURLOPT_POSTFIELDS, $request);

// Request to paypal
$response = curl_exec($curl);

请让我知道我在这里缺少什么。

最佳答案

在该 URL 中提供的卡片在沙盒中使用得太多以至于它们不再起作用了。他们使用 PayFlow,但使用 DoDirectPayment 则不行。

相反,generate fresh numbers here当你需要它们的时候。那里生成的任何号码都可以使用任何安全代码和有效到期日期。

关于php - Paypal 方法 = DoDirectPayment #10759 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37496490/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com