更新计划价格时,定期付款API不支持订阅配置文件

mur*_*hna 7 paypal-subscriptions recurring-billing

我使用paypal api进行重复计费.我想用paypal api更新计划价格.为此,我正在使用

$curl = curl_init();

curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp');
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
    'USER' => 'ddsds_da_api',
    'PWD' => '123412432134',
    'SIGNATURE' => 'sgdsdshds',

    'METHOD' => 'UpdateRecurringPaymentsProfile',
    'VERSION' => '108',
    'PROFILEID' => 'I-FYYMDB55ADSH',

    'NOTE' => 'Uma nota opcional, explicando o motivo da mudança',
    'AMT' => 120,
    'CURRENCYCODE' => 'BRL'
)));

$response =    curl_exec($curl);

curl_close($curl);

$nvp = array();

if (preg_match_all('/(?<name>[^\=]+)\=(?<value>[^&]+)&?/', $response, $matches)) {
    foreach ($matches['name'] as $offset => $name) {
        $nvp[$name] = urldecode($matches['value'][$offset]);
    }
}

print_r($nvp);
Run Code Online (Sandbox Code Playgroud)

但我得到此错误定期付款API不支持订阅配置文件这是我的错误

<pre>Array
(
    [PROFILEID] => I-FYYMDB55ADSH
    [TIMESTAMP] => 2015-03-16T15:48:07Z
    [CORRELATIONID] => 33216e1739dde
    [ACK] => Failure
    [VERSION] => 76.0
    [BUILD] => 15735246
    [L_ERRORCODE0] => 11592
    [L_SHORTMESSAGE0] => Subscription Profiles not supported.
    [L_LONGMESSAGE0] => Subscription Profiles not supported by Recurring Payment APIs.
    [L_SEVERITYCODE0] => Error
)
Run Code Online (Sandbox Code Playgroud)

请让我知道我做错了什么.

Ash*_*edi 3

正如PayPal 社区帮助论坛中的回答

由 PayPal_Frank 管理员回答: 04-02-2012 11:08 AM

...
GetRecurringPaymentsProfileDetails API 不支持基本订阅按钮配置文件 ID。此 API 仅适用于通过 CreateRecurringPaymentsProfile API 通过 Express Checkout 创建的订阅或定期付款配置文件,Express Checkout 是我们基于 API 的结帐解决方案。使用 Express Checkout 不需要 Website Payments Pro。我知道这可能会令人沮丧,我们建议商家通过 IPN 收集基本订阅信息以存储在他们自己的数据库中或在他们的 PayPal 帐户上查看信息。我们的商家技术服务团队也已将其作为功能请求提交。
https://www.x.com/developers/paypal/forums/general-support/there-any-api-or-methods-which-i-can-get- ...

...