Index: branches/5.2.x/units/gateways/gw_classes/authorizenet.php =================================================================== diff -u -N -r13845 -r14099 --- branches/5.2.x/units/gateways/gw_classes/authorizenet.php (.../authorizenet.php) (revision 13845) +++ branches/5.2.x/units/gateways/gw_classes/authorizenet.php (.../authorizenet.php) (revision 14099) @@ -1,6 +1,6 @@ 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']); + $gw_responce = $this->parseGWResponce(null, $gw_params); // gw_error_msg: $gw_response['responce_reason_text'] @@ -99,7 +104,12 @@ 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'); + /* @var $curl_helper kCurlHelper */ + + $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'] @@ -150,7 +160,7 @@ unset($gw_responce[$field_index]); } $this->parsed_responce = $ret; - return array_merge_recursive2($ret, $gw_responce); // returns unparsed fields with they original indexes together with parsed ones + return kUtil::array_merge_recursive($ret, $gw_responce); // returns unparsed fields with they original indexes together with parsed ones } function getGWResponce()