Subscription profiles that are not supported by the recurring payment API when updating a plan price

I use paypal api for billing again. I want to update the plan price using paypal api. for this i use

$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);

But I get this error . Subscription profiles not supported by recurring payment APIs. . Here is my mistake.

<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
)

Please let me know what I did wrong.

+7
source share
3 answers

As stated in the PayPal Community Help Forum

by PayPal_Frank Administrator answerd: 02-02-2012 11:08 AM

...
API GetRecurringPaymentsProfileDetails. API , API CreateRecurringPaymentsProfile Express Checkout, API. - Pro Express Checkout. , , , IPN PayPal. Merchant.
https://www.x.com/developers/paypal/forums/general-support/there-any-api-or-methods-which-i-can-get-...

...

+2

, URL-, :

$url = 'https://api.paypal.com/v1/payments/billing-agreements/'.$z_res[0]['id_agreement']."/transactions?start_date=".substr($logdbarray['Deal_Start'],0,10)."&end_date=".substr($now,0,10);

. : , . , , .

+1

:

let url = ' https://api.paypal.com/v1/payments/billing-agreements/ ' +

$z_res[0]['id_agreement']

+ "/? start_date =" +

logdbarray

.substring([ ''] Deal_Start, 0,10) + "& _ =" +Date.() (0,10).

, logdbarray? , $z_res[0]['id_agreement'] - .

0
source

All Articles