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

#   Calling onPaymentNotification() with $\_POST

##

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 7 months ago [\#149554](#149554) by [Urbanski](/forum/user/31856-urbanski "View Urbanski's Profile")  *[Calling onPaymentNotification() with $\_POST](/forum/29-payment-methods/866908-calling-onpaymentnotification-with-post#149554 "-- url of the page with the problem -- : http://http://www.qwerty.webion.pl/Joomla323/ -- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Chrome 33.0.1750.154  Hi,  I would like to ask is there a chance to call onPaymentNotification() with params in $&#95;POST. My payment gateway sends CSV params by POST. This is my code:  Thank you in advance, JU")* was created by *[Urbanski](/forum/user/31856-urbanski "View Urbanski's Profile")*

-- url of the page with the problem -- : http://http://www.qwerty.webion.pl/Joomla323/
-- HikaShop version -- : 2.3.0
-- Joomla version -- : 3.2
-- PHP version -- : 5.3
-- Browser(s) name and version -- : Chrome 33.0.1750.154

Hi,

I would like to ask is there a chance to call onPaymentNotification() with params in $_POST. My payment gateway sends CSV params by POST. This is my code:
Code:

function onPaymentNotification(&amp;$statuses) { if (!empty($_POST)) { if(empty($_POST['json']) &#124;&#124; !$this-&gt;check_ip()){ exit; } $data = json_decode(stripcslashes($_POST['json']), true); $ret = array(); foreach($data as $entry) { if(isset($entry['account'])) { $ret[] = array( 'account' =&gt; $entry['account'], 'transfer' =&gt; $entry['transfer'], 'return' =&gt; 1 ); //&#96;account&#96; &#96;control&#96; &#96;transfer&#96; &#96;time&#96; &#96;amount&#96; &#96;guarantee&#96; &#96;title&#96; &#96;status&#96; if($entry['status'] != '2'){ $this-&gt;modifyOrder($order_id, $this-&gt;payment_params-&gt;verified_status, true, true); return true; } else{ $this-&gt;modifyOrder($order_id, $this-&gt;payment_params-&gt;invalid_status, true, true); return false; } } echo json_encode($ret); } } exit; }

Thank you in advance,
JU

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjY5MDgtY2FsbGluZy1vbnBheW1lbnRub3RpZmljYXRpb24td2l0aC1wb3N0P3RtcGw9bWFya2Rvd24=) 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 7 months ago [\#149559](#149559) 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 *[Calling onPaymentNotification() with $\_POST](/forum/29-payment-methods/866908-calling-onpaymentnotification-with-post#149559 "-- url of the page with the problem -- : http://http://www.qwerty.webion.pl/Joomla323/ -- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Chrome 33.0.1750.154  Hi,  I would like to ask is there a chance to call onPaymentNotification() with params in $&#95;POST. My payment gateway sends CSV params by POST. This is my code:  Thank you in advance, JU")*

Hello,
Sure ![:)](/media/kunena/emoticons/8.png ":)").

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

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

Less More

- Posts: 2
- Thank you received: 0
-
-

12 years 7 months ago [\#149674](#149674) by [Urbanski](/forum/user/31856-urbanski "View Urbanski's Profile")  Replied by *[Urbanski](/forum/user/31856-urbanski "View Urbanski's Profile")* on topic *[Calling onPaymentNotification() with $\_POST](/forum/29-payment-methods/866908-calling-onpaymentnotification-with-post#149674 "-- url of the page with the problem -- : http://http://www.qwerty.webion.pl/Joomla323/ -- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Chrome 33.0.1750.154  Hi,  I would like to ask is there a chance to call onPaymentNotification() with params in $&#95;POST. My payment gateway sends CSV params by POST. This is my code:  Thank you in advance, JU")*

Could you tell me what's wrong with my code then? If I'm using direct link to call onPaymentNotification() without POST it works (before first if I print simple echo and i can see this), but when i do it with POST params it returns page name. Link i'm using is:

MY_PAGE/index.php?notif_payment=NAME&amp;option=com_hikashop&amp;ctrl=checkout&amp;task=notify&amp;tmpl=component&amp;lang=LANGUAGE

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjY5MDgtY2FsbGluZy1vbnBheW1lbnRub3RpZmljYXRpb24td2l0aC1wb3N0P3RtcGw9bWFya2Rvd24=) 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 7 months ago [\#149677](#149677) 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 *[Calling onPaymentNotification() with $\_POST](/forum/29-payment-methods/866908-calling-onpaymentnotification-with-post#149677 "-- url of the page with the problem -- : http://http://www.qwerty.webion.pl/Joomla323/ -- HikaShop version -- : 2.3.0 -- Joomla version -- : 3.2 -- PHP version -- : 5.3 -- Browser(s) name and version -- : Chrome 33.0.1750.154  Hi,  I would like to ask is there a chance to call onPaymentNotification() with params in $&#95;POST. My payment gateway sends CSV params by POST. This is my code:  Thank you in advance, JU")*

You should debug your code using the php **var\_dump** function, also note that it won't be displayed on the "onPaymentNotification()" link but through your payment log.
You'll be able to check your payment log file through "Hikashop-&gt;System-&gt;Configuration-&gt;Main" by using the "See the report" button of your Payment log file option.

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

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

[](#top)
