Home > Articles > Programming infos and tutorials > How does the AIM CURL call to Authorize.net look like?

Actually its only some lines of code (which you can also find in the Authorize.net AIM sample code):

$request = curl_init($post_url);

curl_setopt($request, CURLOPT_HEADER, 0);
curl_setopt($request, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($request, CURLOPT_POSTFIELDS, $post_string);
$post_response = curl_exec($request);
curl_close ($request); // close curl object

// Following line takes the response
$response_array = explode($post_values["x_delim_char"],$post_response);

Keep in mind: your website can only sent a CURL call if your PHP has the CURL module implemented.


Choose the way you would like to be notified for latest posts.

Subscribe to the RSS feed Sign up for Email alerts Follow on Twitter

1 Comment

Trackbacks/Pingbacks

show/hide trackbacks
  1. [...] very important happened between the last two steps. Your website sent the CC-Data via a hidden CURL call to Authorize.net – the result of the transaction is sent back again in the background. Like this the customer [...]

Leave a Comment