Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

MarP

Pioneers
  • Posts

    9
  • Joined

  • Last visited

Profile Information

  • Real Name
    MarkP

MarP's Achievements

  1. Hi Raz, I spoke too soon in my above post but Burt is correct about the password. Try making your password less then 16 characters in your FD demo account and see if that works for you.
  2. Actually, I didn't have a problem with the long password, Burt. My password is over 16 characters and the module works. But yes, I did have to remove the code you posted.
  3. I switched to Hostgator. There is only one module and only 1 file you change. If in fact, you do have to change it (you may not have too. The creator of this module says it should work as is but for me it didn't as it didn't for others) and that's the includes/modules/payment/gge4_cc_aim.php file.
  4. Switched web hosting to another host and this module works now.
  5. I'm getting the Soap error also. And tried to follow Drew's suggestion. Is this correct, Drew? class SoapClientHMAC extends SoapClient { function __doRequest($request, $location, $action, $version, $one_way = NULL) { global $context; $mode_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GGE4_CC_AIM_TRANSACTION_MODE'"); $trans_mode = tep_db_fetch_array($mode_query); $show_mode = implode($trans_mode); if ($show_mode == 'Test') { // Demo server $hkey_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GGE4_CC_AIM_DEMO_MD5_HASH'"); $hkey = tep_db_fetch_array($hkey_query); $idkey_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GGE4_CC_AIM_DEMO_TRANSACTION_KEY'"); $idkey = tep_db_fetch_array($idkey_query); } else { // Live Server $hkey_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GGE4_CC_AIM_MD5_HASH'"); $hkey = tep_db_fetch_array($hkey_query); $idkey_query = tep_db_query("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_PAYMENT_GGE4_CC_AIM_TRANSACTION_KEY'"); $idkey = tep_db_fetch_array($idkey_query); } $show_hkey = implode($hkey); $hmackey = "$show_hkey"; // HMAC Key $show_key = implode($idkey); $keyid = "$show_key"; // API Key ID $hashtime = date("c"); $hashstr = "POST\ntext/xml; charset=utf-8\n" . sha1($request) . "\n" . $hashtime . "\n" . parse_url($location,PHP_URL_PATH); $authstr = base64_encode(hash_hmac("sha1",$hashstr,$hmackey,TRUE)); ini_set("user_agent", "PHP-SOAP/" . PHP_VERSION . "\r\nAuthorization: GGE4_API " . $keyid . ":" . $authstr . "\r\nx-gge4-date: " . $hashtime . "\r\nx-gge4-content-sha1: " . sha1($request)); return parent::__doRequest($request, $location, $action, $version, $one_way); } } class gge4_cc_aim extends SoapClientHMAC { var $code, $title, $description, $enabled; // class constructor
×
×
  • Create New...