Paypal 退款 NVP API : You do not have permission to refund this transaction

标签 paypal paypal-nvp

我正在使用 Paypal NVP Refund Api 进行退款 Paypal 交易。 一切正常,但当我尝试调用 api 时,它给出了以下响应。

Array
(
    [TIMESTAMP] => 2017-07-17T13:58:24Z
    [CORRELATIONID] => xxxxxxxxxx
    [ACK] => Failure
    [VERSION] => 51.0
    [BUILD] => 36458220
    [L_ERRORCODE0] => 10007
    [L_SHORTMESSAGE0] => Permission denied
    [L_LONGMESSAGE0] => You do not have permission to refund this transaction
    [L_SEVERITYCODE0] => Error
)

是我想念的某个过程吗?

最佳答案

授予权限后,存在同样的问题。 然后我发现我错过了一个论点..

我正在发送此请求。

$nvpreq = array(
    'USER' => '',
    'PWD' => '',
    'SIGNATURE' => '',
    'METHOD'=> 'RefundTransaction',
    'VERSION' => urlencode('94'),
    'TRANSACTIONID' => 'xxxxxxxx',
    'REFUNDTYPE' => 'Partial',
    'AMT' => '0.01',
    'CURRENCYCODE' => 'USD');

我忘记添加 'SUBJECT' => 'reiceversemail@gmail.com',。 现在它正在运行。

关于 Paypal 退款 NVP API : You do not have permission to refund this transaction,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45146366/

相关文章:

php - 如何在 PayPal 沙盒账户中启用 DPRP?

jquery - codeigniter 上的 PayPal 付款

php - 在 PHP 中使用 PayPal 确认已处理的付款

android - 如何在 Android 上检索已完成的付款详细信息

php - 需要使用 Paypal Mass Pay API 通过 IPN 捕获和存储收款人的详细信息

php - PayPal 的跟踪 ID

templates - 覆盖 prestashop 中的 paypal 模块模板文件

php - Paypal Rest API - 如何获取客户端 ID 和密码?

paypal-nvp - 在 ASP.Net 应用程序中,与 Net SDK for PayPal 相比,NVP 是更好的开发选项吗?

Paypal Express NVP 是否需要 IPN?