I believe the version number should be the number you find in the download pulldown when you do a manual download. So for 11 r1.1 it would be 11.0 as you have it configured.
I don't know anything about the "URL and query string " question.
// now download the order information
$download_nonce = "503bb763";
$access_token = $auth_vals["access_token"];
$order_url = $auth_vals["download_url"];
$timestamp = time();
$order_message = "clientApp=1&dbname=orders&version=11.0";
$order_message .= "&pay=no_cvv";
$order_message .= "&token=" . $access_token;
$order_message .= "×tamp=" . $timestamp;
$order_message .= "&nonce=" . $download_nonce;
$order_buffer = "$access_token\n";
$order_buffer .= "$timestamp\n";
$order_buffer .= "$download_nonce\n\n";
$order_buffer .= "POST\n";
$order_buffer .= "slate.secure-host.com\n";
$order_buffer .= "443\n";
$order_buffer .= "/cgi-wellnesscenter/sb/db_xml.cgi\n";
$order_buffer .= "clientApp=1\n";
$order_buffer .= "dbname=order\n";
$order_buffer .= "pay=no_cvv\n";
$order_buffer .= "version=11.0\n";
$order_hash = hash_hmac('sha1', $order_buffer, $secret_key, true);
$download_sig = base64_encode($order_hash);
$order_message .= "&signature=" . $download_sig;
// now do all the curl stuff as before
...
curl_setopt($ch, CURLOPT_POSTFIELDS, $order_message);
...
Users browsing this forum: No registered users and 15 guests