I called this function with valid parameters. function get_subscription_status( $profile_id, $api_username, $api_password, $api_signature) { $api_request = 'USER=' . $api_username . '&PWD=' . $api_password . '&SIGNATURE=' . $api_signature . '&VERSION=108' . '&METHOD=GetRecurringPaymentsProfileDetails' . '&PROFILEID=' . $profile_id; $ch = curl_init(); //curl_setopt( $ch, CURLOPT_URL, 'https://api-3t.paypal.com/nvp' ); // For live transactions curl_setopt( $ch, CURLOPT_URL, 'https://api-3t.sandbox.paypal.com/nvp' ); // For sandbox transactions curl_setopt( $ch, CURLOPT_VERBOSE, 1 ); // Uncomment these to turn off server and peer verification //curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE ); //curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, FALSE ); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 ); curl_setopt( $ch, CURLOPT_POST, 1 ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $api_request ); // Request response from PayPal $response = curl_exec($ch); // If no response was received from PayPal there is no point parsing the response if( ! $response ) die( 'Calling PayPal to change_subscription_status failed: ' . curl_error( $ch ) . '(' . curl_errno( $ch ) . ')' ); curl_close( $ch ); $res = urldecode($response); print_r($res); } When I called this function, I received below response. PROFILEID=I-S43P3DWW5C2C&TIMESTAMP=2018-10-19T17:36:52Z&CORRELATIONID=a094a4da324df&ACK=Failure&VERSION=108&BUILD=46457558&L_ERRORCODE0=11592&L_SHORTMESSAGE0=Subscription Profiles not supported.&L_LONGMESSAGE0=Subscription Profiles not supported by Recurring Payment APIs.&L_SEVERITYCODE0=Error I'd like to check the subscription status (in order to see active or not), so I used this function to get the Recurring Payments Profile Details according to this guid: https://developer.paypal.com/docs/classic/api/merchant/GetRecurringPaymentsProfileDetails_API_Operation_NVP/ But I failed and got above error response. How can I solve this? Please help me. Thank you. Li Hanying.
... View more