diff --git a/commerce_epdq.module b/commerce_epdq.module
index 9d8958c..0e39a13 100644
--- a/commerce_epdq.module
+++ b/commerce_epdq.module
@@ -546,6 +546,25 @@ function commerce_epdq_encrypt(stdClass $order, array $settings) {
     'mandatecsc' => ($settings['epdq_mandate_csc'] == 'no') ? 0 : 1,
   );
 
+  $ch = curl_init();
+  curl_setopt($ch, CURLOPT_POST, 1);
+  curl_setopt($ch, CURLOPT_POSTFIELDS, drupal_http_build_query($post_data));
+  curl_setopt($ch, CURLOPT_URL, $settings['epdq_enc_url']);
+  curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2);
+  curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)');
+  curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
+  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
+  $response = curl_exec($ch);
+  curl_close($ch);
+
+  // Find the response line that contains the string 'epdqdata'.
+  $response_lines = explode("\n", $response);
+  foreach ($response_lines as $line) {
+    if (strpos($line, 'epdqdata') !== FALSE) {
+      return $line;
+    }
+  }
+
   // Post to the ePDQ encryption tool.
   $response = drupal_http_request($settings['epdq_enc_url'], array(
     'method' => 'POST',
