I am using PayPal API for recurring billing. I want to update the plan price using PayPal API, I am using
$ curl = curl_init (); Curl_setopt ($ curl, CURLOPT_RETURNTRANSFER, true); Curl_setopt ($ curl, CURLOPT_SSL_VERIFYPEER, incorrect); Curl_setopt ($ curl, CURLOPT_POST, true); Curl_setopt ($ curl, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp'); = 'Gtc: mediawidth =' gtc:, 'VERSION' = & gt; '108', 'PROFILEID' => 'I-FYYMDB55ADSH', 'Note' = & gt; 'Uma Nota Oceanic, Explanation O Inspiration The Moodana', 'AMT' => 120, CURRENCYCODE '=> BRL '))); $ Response = curl_xax ($ curl); Curl_close ($ curl); $ Nvp = Array (); If (preg_match_all ('/ (? & Lt; name & gt; [^ \ =] +) \ = (? & Lt; value & gt; [^ & amp;; +] & amp;? /', $ Reaction , $ Matches)) {foreach $ matches [$ name] $ offset = offset = & gt; $} match with {$ nvp [$ name] = urldecode ($ ['value'] [$ offset] Account); }} Print_r ($ nvp);
But I'm getting this error Membership profiles are not supported by the recurring payment API This is my error
Pre & gt; Array ([PROFILEID] = & gt; I-FYYMDB55ADSH [TIMESTAMP] => 2015-03-16T15: 48: 07Z [CORRELATIONID] => 33216e1739dde [ACK] => Failure [version] => ; 76.0 [BUILD] = & gt; 15735246 [L_ERRORCODE0] = & gt; 11592 [L_SHORTMESSAGE0] => Membership Profile Not Supported [L_LONGMESSAGE0] => Membership Profile Payment Not Supported by API Recurring [L_SEVERITYCODE0] = & Gt; Error)
Please tell me what I have done.
No comments:
Post a Comment