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

#   Hikashop 2.5.0: credit card email alternative

##

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

Less More

- Posts: 28
- Thank you received: 0
-
-

10 years 1 month ago [\#248607](#248607) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  *[Hikashop 2.5.0: credit card email alternative](/forum/35-orders-management/886177-hikashop-2-5-0-credit-card-email-alternative#248607 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest -- PHP version -- : latest  Using 2.5.0, client doesn't want to pay to update.  Are there any free plugins or extensions or source code somewhere for an alternative way of sending credit card / payment details to the admin? The client doesn't get all the order emails for whatever reason and they say it is a pain to have to call the customer to confirm the missing payment info (ie. email + backend for full cc details).  The client processes about online 500 credit card purchases a month, so it would be classified as a level 4 merchant (for PCI compliance / whatever).")* was created by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")*

-- HikaShop version -- : 2.5.0
-- Joomla version -- : latest
-- PHP version -- : latest

Using 2.5.0, client doesn't want to pay to update.

Are there any free plugins or extensions or source code somewhere for an alternative way of sending credit card / payment details to the admin? The client doesn't get all the order emails for whatever reason and they say it is a pain to have to call the customer to confirm the missing payment info (ie. email + backend for full cc details).

The client processes about online 500 credit card purchases a month, so it would be classified as a level 4 merchant (for PCI compliance / whatever).

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE3Ny1oaWthc2hvcC0yLTUtMC1jcmVkaXQtY2FyZC1lbWFpbC1hbHRlcm5hdGl2ZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

10 years 1 month ago [\#248626](#248626) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop 2.5.0: credit card email alternative](/forum/35-orders-management/886177-hikashop-2-5-0-credit-card-email-alternative#248626 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest -- PHP version -- : latest  Using 2.5.0, client doesn't want to pay to update.  Are there any free plugins or extensions or source code somewhere for an alternative way of sending credit card / payment details to the admin? The client doesn't get all the order emails for whatever reason and they say it is a pain to have to call the customer to confirm the missing payment info (ie. email + backend for full cc details).  The client processes about online 500 credit card purchases a month, so it would be classified as a level 4 merchant (for PCI compliance / whatever).")*

Hi,

HikaShop stores only half of the credit card data with the order and sends half to the admin by email for security reasons.
If you want to get all the data in the order, it would require modifying the code: Code:

function onBeforeOrderCreate(&amp;$order,&amp;$do){ if(parent::onBeforeOrderCreate($order, $do) === true) return true; $this-&gt;ccLoad(); if($order-&gt;order_payment_method=='creditcard'){ $order-&gt;credit_card_info = $this; $obj = new stdClass(); $obj-&gt;cc_number=substr($this-&gt;cc_number,0,8); $obj-&gt;cc_month=$this-&gt;cc_month; $obj-&gt;cc_year=$this-&gt;cc_year; $obj-&gt;cc_type=@$this-&gt;cc_type; $history = new stdClass(); $history-&gt;type = 'credit card'; $history-&gt;notified = 0; $history-&gt;data = base64_encode(serialize($obj)); $this-&gt;modifyOrder($order,$this-&gt;payment_params-&gt;order_status,$history,false); } } function onHistoryDisplay(&amp;$histories){ foreach($histories as $k =&gt; $history){ if($history-&gt;history_payment_method == $this-&gt;name &amp;&amp; !empty($history-&gt;history_data)){ $data = hikashop_unserialize(base64_decode($history-&gt;history_data)); $string=''; if(!empty($data-&gt;cc_type)){ $string.= JText::_('CARD_TYPE').': '.$data-&gt;cc_type.'&lt;br /&gt;'; } $string.= JText::_('DATE').': '.$data-&gt;cc_month.'/'.$data-&gt;cc_year.'&lt;br /&gt;'; $string.= JText::_('BEGINNING_OF_CREDIT_CARD_NUMBER').': '.$data-&gt;cc_number.'&lt;br /&gt;'; $string.='&lt;a href="'.hikashop_completeLink('order&amp;task=remove_history_data&amp;history_id='.$history-&gt;history_id).'"&gt;&lt;img src="'.HIKASHOP_IMAGES.'delete.png" /&gt;&lt;/a&gt;'; $histories[$k]-&gt;history_data = $string; static $done = false; if(!$done){ $done = true; $app = JFactory::getApplication(); $app-&gt;enqueueMessage(JText::_('CREDITCARD_WARNING')); } } } }

in the file plugins/hikashoppayment/creditcard/creditcard.php
But by doing that, I doubt that you can still guarantee PCI compliance of the website.
Ideally, it would require storing the credit card data on a separate server in a secure way by developing a custom plugin, putting in place such server on your end, add all the security necessary on the server and the network to guarantee the safery of the data, etc.
Separating the information in an email and the order like HikaShop does is a cheap and easy way to secure the credit card data.

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

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

Less More

- Posts: 28
- Thank you received: 0
-
-

10 years 1 month ago [\#248881](#248881) by [Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")  Replied by *[Cedwyn](/forum/user/31495-cedwyn "View Cedwyn's Profile")* on topic *[Hikashop 2.5.0: credit card email alternative](/forum/35-orders-management/886177-hikashop-2-5-0-credit-card-email-alternative#248881 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest -- PHP version -- : latest  Using 2.5.0, client doesn't want to pay to update.  Are there any free plugins or extensions or source code somewhere for an alternative way of sending credit card / payment details to the admin? The client doesn't get all the order emails for whatever reason and they say it is a pain to have to call the customer to confirm the missing payment info (ie. email + backend for full cc details).  The client processes about online 500 credit card purchases a month, so it would be classified as a level 4 merchant (for PCI compliance / whatever).")*

Thanks for the detailed reply.

I prefer not to store the data on the clients db. Does hikashop have any plugins that work with payment/tokenization gateways? (So I don't have to write any code) Ie. Client enters CC info -&gt; info is sent to 3rd party db, token returned -&gt; token stored in client db -&gt; client uses some app to access the token from their db

Otherwise, with your code above, I should be able to get the token response and store it under cc_number and this is inserted in the client db?

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE3Ny1oaWthc2hvcC0yLTUtMC1jcmVkaXQtY2FyZC1lbWFpbC1hbHRlcm5hdGl2ZT90bXBsPW1hcmtkb3du) 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")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86292
- Thank you received: 14271
-
-

10 years 1 month ago [\#248891](#248891) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Hikashop 2.5.0: credit card email alternative](/forum/35-orders-management/886177-hikashop-2-5-0-credit-card-email-alternative#248891 "-- HikaShop version -- : 2.5.0 -- Joomla version -- : latest -- PHP version -- : latest  Using 2.5.0, client doesn't want to pay to update.  Are there any free plugins or extensions or source code somewhere for an alternative way of sending credit card / payment details to the admin? The client doesn't get all the order emails for whatever reason and they say it is a pain to have to call the customer to confirm the missing payment info (ie. email + backend for full cc details).  The client processes about online 500 credit card purchases a month, so it would be classified as a level 4 merchant (for PCI compliance / whatever).")*

Hi,

I don't know of such plugin already available for HikaShop.
But yes, you can change the code there to send the info to such service and then store the token in the same manner.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzM1LW9yZGVycy1tYW5hZ2VtZW50Lzg4NjE3Ny1oaWthc2hvcC0yLTUtMC1jcmVkaXQtY2FyZC1lbWFpbC1hbHRlcm5hdGl2ZT90bXBsPW1hcmtkb3du) 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.189 seconds

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

[](#top)
