[Skip to main content](#vessel-content)

#   first data payment gateway plugin is broke

##

- **[l95theses](/forum/user/29003-l95theses "View l95theses's Profile")**
- [![l95theses's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29003-l95theses "View l95theses's Profile") Topic Author
- [ Offline](/forum/user/29003-l95theses)

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 5 months ago [\#156869](#156869) by [l95theses](/forum/user/29003-l95theses "View l95theses's Profile")  *[first data payment gateway plugin is broke](/forum/31-development/868394-first-data-payment-gateway-plugin-is-broke#156869 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest. -- Error-message(debug-mod must be tuned on) -- : N/A Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here:")* was created by *[l95theses](/forum/user/29003-l95theses "View l95theses's Profile")*

-- url of the page with the problem -- : [ mywebsite.com/mypage](http://mywebsite.com/mypage)
-- HikaShop version -- : 2.2.2
-- Joomla version -- : latest
-- PHP version -- : latest
-- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest.
-- Error-message(debug-mod must be tuned on) -- : N/A
Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here: Code:

&lt;?php /** * First Data Global Gateway e4℠ * * Copyright (c) 2004. All Rights Reserved. * * YOUR RIGHTS WITH RESPECT TO THIS SOFTWARE IS GOVERNED BY THE * TERMS AND CONDITIONS SET FORTH IN THE CORRESPONDING EULA. * * Last Updated: May 8, 2006 ----------------- Modified October 5, 2012 by Aaron Sears * * A PHP server is required for this sample code and can be downloaded from http://www.php.net * PHP 5.1.2 was used for this code. * * PHP Extensions required: * php_openssl.dll - allows the use of https connections * - required files: * libeay32.dll - included in the PHP 5.1.2 package * ssleay32.dll - inlcuded in the PHP 5.1.2 package * php_openssl.dll should be inside the 'ext' directory under the PHP installation directory and the required * dependancies are in the root of the PHP installation directory. * The dependencies should be placed in a directory which is part of the windows path or placed in the 'system32' of * the Windows installation directory. * php_openssl.dll extension should be enabled in the PHP.ini file used to setup the PHP server. * * php_soap.dll - allows the soap communication with the transaction server. * * php_soap.dll should be inside the 'ext' directory under the PHP installation directory. * php_soap.dll extension should be enabled in the PHP.ini file used to setup the PHP server. * * For setup of PHP server and activation of PHP extensions please refer to the installation manual included in the * PHP 5.1.2 package download. **/ class SoapClientHMAC extends SoapClient { public function __doRequest($request, $location, $action, $version, $one_way = NULL) { global $context; $hmackey = ""; // &lt;-- Insert your HMAC key here $keyid = ""; // &lt;-- Insert the Key ID here $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)); if (version_compare(PHP_VERSION, '5.3.11') == -1) { 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)); } else { stream_context_set_option($context,array("http" =&gt; array("header" =&gt; "authorization: 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); } public function SoapClientHMAC($wsdl, $options = NULL) { global $context; $context = stream_context_create(); $options['stream_context'] = $context; return parent::SoapClient($wsdl, $options); } } $trxnProperties = array( "User_Name"=&gt;"", "Secure_AuthResult"=&gt;"", "Ecommerce_Flag"=&gt;"", "XID"=&gt;"", "ExactID"=&gt;$_POST["ddlPOS_ExactID"], //Payment Gateway "CAVV"=&gt;"", "Password"=&gt;"", //Gateway Password "CAVV_Algorithm"=&gt;"", "Transaction_Type"=&gt;$_POST["ddlPOS_Transaction_Type"],//Transaction Code I.E. Purchase="00" Pre-Authorization="01" etc. "Reference_No"=&gt;$_POST["tbPOS_Reference_No"], "Customer_Ref"=&gt;$_POST["tbPOS_Customer_Ref"], "Reference_3"=&gt;$_POST["tbPOS_Reference_3"], "Client_IP"=&gt;"", //This value is only used for fraud investigation. "Client_Email"=&gt;$_POST["tb_Client_Email"], //This value is only used for fraud investigation. "Language"=&gt;$_POST["ddlPOS_Language"], //English="en" French="fr" "Card_Number"=&gt;$_POST["tbPOS_Card_Number"], //For Testing, Use Test#s VISA="4111111111111111" MasterCard="5500000000000004" etc. "Expiry_Date"=&gt;$_POST["ddlPOS_Expiry_Date_Month"] . $_POST["ddlPOS_Expiry_Date_Year"],//This value should be in the format MM/YY. "CardHoldersName"=&gt;$_POST["tbPOS_CardHoldersName"], "Track1"=&gt;"", "Track2"=&gt;"", "Authorization_Num"=&gt;$_POST["tbPOS_Authorization_Num"], "Transaction_Tag"=&gt;$_POST["tbPOS_Transaction_Tag"], "DollarAmount"=&gt;$_POST["tbPOS_DollarAmount"], "VerificationStr1"=&gt;$_POST["tbPOS_VerificationStr1"], "VerificationStr2"=&gt;"", "CVD_Presence_Ind"=&gt;"", "Secure_AuthRequired"=&gt;"", "Currency"=&gt;"", "PartialRedemption"=&gt;"", // Level 2 fields "ZipCode"=&gt;$_POST["tbPOS_ZipCode"], "Tax1Amount"=&gt;$_POST["tbPOS_Tax1Amount"], "Tax1Number"=&gt;$_POST["tbPOS_Tax1Number"], "Tax2Amount"=&gt;$_POST["tbPOS_Tax2Amount"], "Tax2Number"=&gt;$_POST["tbPOS_Tax2Number"], "SurchargeAmount"=&gt;$_POST["tbPOS_SurchargeAmount"], //Used for debit transactions only "PAN"=&gt;$_POST["tbPOS_PAN"] //Used for debit transactions only ); $client = new SoapClientHMAC("https://api.demo.globalgatewaye4.firstdata.com/transaction/v12/wsdl"); $trxnResult = $client-&gt;SendAndCommit($trxnProperties); if(@$client-&gt;fault){ // there was a fault, inform print "&lt;B&gt;FAULT: Code: {$client-&gt;faultcode} &lt;BR /&gt;"; print "String: {$client-&gt;faultstring} &lt;/B&gt;"; $trxnResult["CTR"] = "There was an error while processing. No TRANSACTION DATA IN CTR!"; } //Uncomment the following commented code to display the full results. echo "&lt;H3&gt;&lt;U&gt;Transaction Properties BEFORE Processing&lt;/U&gt;&lt;/H3&gt;"; echo "&lt;TABLE border='0'&gt;\n"; echo " &lt;TR&gt;&lt;TD&gt;&lt;B&gt;Property&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;Value&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;\n"; foreach($trxnProperties as $key=&gt;$value){ echo " &lt;TR&gt;&lt;TD&gt;$key&lt;/TD&gt;&lt;TD&gt;:$value&lt;/TD&gt;&lt;/TR&gt;\n"; } echo "&lt;/TABLE&gt;\n"; echo "&lt;H3&gt;&lt;U&gt;Transaction Properties AFTER Processing&lt;/U&gt;&lt;/H3&gt;"; echo "&lt;TABLE border='0'&gt;\n"; echo " &lt;TR&gt;&lt;TD&gt;&lt;B&gt;Property&lt;/B&gt;&lt;/TD&gt;&lt;TD&gt;&lt;B&gt;Value&lt;/B&gt;&lt;/TD&gt;&lt;/TR&gt;\n"; foreach($trxnResult as $key=&gt;$value){ $value = nl2br($value); echo " &lt;TR&gt;&lt;TD valign='top'&gt;$key&lt;/TD&gt;&lt;TD&gt;:$value&lt;/TD&gt;&lt;/TR&gt;\n"; } echo "&lt;/TABLE&gt;\n"; // kill object unset($client); ?&gt; &lt;html&gt; &lt;head&gt; &lt;title&gt;VPOS - Sample Code&lt;/title&gt; &lt;meta http-equiv="Content-Type" content="text/html;charset=UTF-8"&gt; &lt;/head&gt; &lt;body&gt; &lt;table&gt; &lt;tr&gt;&lt;td&gt; &lt;table cellSpacing="0" cellPadding="0" width="660" align="left" border="0"&gt; &lt;tr&gt; &lt;td&gt;&lt;font face="verdana,arial,helvetica" size="5"&gt;&lt;b&gt;First Data Global Gateway e4 POS&lt;/b&gt;&lt;/font&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt; &lt;table cellSpacing="6" cellPadding="0" width="660" align="left" border="2"&gt; &lt;tr&gt; &lt;td align="left" valign="top"&gt; &lt;?php foreach($trxnResult as $key=&gt;$value){ if ($key == "CTR") { $value = nl2br($value); print $value; } } ?&gt;&lt;/td&gt; &lt;!-- NOTE: chr(10) is the ASCII equivalent of the "Line Feed" character --&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td align="center" valign="top"&gt;&lt;a href="javascript:history.back();"&gt;Perform Another Transaction&lt;/a&gt;&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;/body&gt; &lt;/html&gt;

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODM5NC1maXJzdC1kYXRhLXBheW1lbnQtZ2F0ZXdheS1wbHVnaW4taXMtYnJva2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#156902](#156902) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[first data payment gateway plugin is broke](/forum/31-development/868394-first-data-payment-gateway-plugin-is-broke#156902 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest. -- Error-message(debug-mod must be tuned on) -- : N/A Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here:")*

Hi,

In [ hikashop.com/support/documentation.html](https://hikashop.com/support/documentation.html), clicking on "payment methods" will display all the available payment methods in HikaShop, in this list, you will be able to find "FirstData Global Gateway e4".

Isn't it the desired plugin ?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODM5NC1maXJzdC1kYXRhLXBheW1lbnQtZ2F0ZXdheS1wbHVnaW4taXMtYnJva2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[l95theses](/forum/user/29003-l95theses "View l95theses's Profile")**
- [![l95theses's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/29003-l95theses "View l95theses's Profile") Topic Author
- [ Offline](/forum/user/29003-l95theses)

Less More

- Posts: 7
- Thank you received: 0
-
-

12 years 5 months ago [\#156990](#156990) by [l95theses](/forum/user/29003-l95theses "View l95theses's Profile")  Replied by *[l95theses](/forum/user/29003-l95theses "View l95theses's Profile")* on topic *[first data payment gateway plugin is broke](/forum/31-development/868394-first-data-payment-gateway-plugin-is-broke#156990 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest. -- Error-message(debug-mod must be tuned on) -- : N/A Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here:")*

yes, but it is for the legacy version of firstdata which is no longer being put forth in motion by merchant service providers. However is still supported by the legacy firstdata merchant accounts (which my client is not).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODM5NC1maXJzdC1kYXRhLXBheW1lbnQtZ2F0ZXdheS1wbHVnaW4taXMtYnJva2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 5 months ago [\#156998](#156998) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[first data payment gateway plugin is broke](/forum/31-development/868394-first-data-payment-gateway-plugin-is-broke#156998 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest. -- Error-message(debug-mod must be tuned on) -- : N/A Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here:")*

Hi,
Note that you can actually use the authorize.net plugin with FirstData e4 with a slight modification:
[ www.hikashop.com/forum/payment-methods/8...guration.html#120931](http://www.hikashop.com/forum/payment-methods/861488-first-data-gge4-configuration.html#120931)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODM5NC1maXJzdC1kYXRhLXBheW1lbnQtZ2F0ZXdheS1wbHVnaW4taXMtYnJva2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[wldworks](/forum/user/36273-wldworks "View wldworks's Profile")**
- [![wldworks's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar36273.png)](/forum/user/36273-wldworks "View wldworks's Profile")
- [ Offline](/forum/user/36273-wldworks)

Less More

- Posts: 31
- Thank you received: 0
-
-
-

11 years 7 months ago [\#193939](#193939) by [wldworks](/forum/user/36273-wldworks "View wldworks's Profile")  Replied by *[wldworks](/forum/user/36273-wldworks "View wldworks's Profile")* on topic *[first data payment gateway plugin is broke](/forum/31-development/868394-first-data-payment-gateway-plugin-is-broke#193939 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest. -- Error-message(debug-mod must be tuned on) -- : N/A Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here:")*

Not without code changes, which are now outdated and in different places (I assume you are talking about intowns changes to the authorize.php) Any updates?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODM5NC1maXJzdC1kYXRhLXBheW1lbnQtZ2F0ZXdheS1wbHVnaW4taXMtYnJva2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86295
- Thank you received: 14273
-
-

11 years 7 months ago [\#193949](#193949) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[first data payment gateway plugin is broke](/forum/31-development/868394-first-data-payment-gateway-plugin-is-broke#193949 "-- url of the page with the problem -- :   mywebsite.com/mypage  -- HikaShop version -- : 2.2.2 -- Joomla version -- : latest -- PHP version -- : latest -- Browser(s) name and version -- : Opera latest, Google Chrome latest, Firefox latest. -- Error-message(debug-mod must be tuned on) -- : N/A Supporting only the legacy accounts of first data. This leads me to wonder into the updating of the existing plugin and subjecting it to the newest api from them included here:")*

[ www.hikashop.com/forum/payment-methods/8...guration.html#193947](http://www.hikashop.com/forum/payment-methods/861488-first-data-gge4-configuration.html#193947)

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg2ODM5NC1maXJzdC1kYXRhLXBheW1lbnQtZ2F0ZXdheS1wbHVnaW4taXMtYnJva2U/dG1wbD1tYXJrZG93bg==) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.171 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
