Index: branches/5.2.x/units/gateways/gw_classes/paypal_direct.php =================================================================== diff -u -N -r13845 -r14099 --- branches/5.2.x/units/gateways/gw_classes/paypal_direct.php (.../paypal_direct.php) (revision 13845) +++ branches/5.2.x/units/gateways/gw_classes/paypal_direct.php (.../paypal_direct.php) (revision 14099) @@ -1,6 +1,6 @@ '; // print_r($post_fields); // exit; - $this->gw_responce = curl_post($gw_params['submit_url'], $post_fields); + + $curl_helper =& $this->Application->recallObject('CurlHelper'); + /* @var $curl_helper kCurlHelper */ + + $curl_helper->SetPostData($post_fields); + $this->gw_responce = $curl_helper->Send($gw_params['submit_url']); + // echo $this->gw_responce; // exit; $gw_responce = $this->parseGWResponce(null, $gw_params); @@ -169,7 +175,11 @@ if( $this->IsTestMode() ) $post_fields['x_test_request'] = 'True'; - $this->gw_responce = curl_post($gw_params['submit_url'], $post_fields); + $curl_helper =& $this->Application->recallObject('CurlHelper'); + + $curl_helper->SetPostData($post_fields); + $this->gw_responce = $curl_helper->Send($gw_params['submit_url']); + $gw_responce = $this->parseGWResponce(null, $gw_params); // gw_error_msg: $gw_response['responce_reason_text']