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

#   After payment is confirmed

##

- **[Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")**
- [![Tsunoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38515.png)](/forum/user/38515-tsunoo "View Tsunoo's Profile") Topic Author
- [ Offline](/forum/user/38515-tsunoo)

Less More

- Posts: 10
- Thank you received: 0
-
-
-
-

10 years 8 months ago [\#228448](#228448) by [Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")  *[After payment is confirmed](/forum/29-payment-methods/882000-after-payment-is-confirmed#228448 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.29  Hello,  I wish to perform some actions using my own PHP script after the payment is confirmed. I need to get all information about the order : customer (name, address, mail...), products, order id. Where can I call my PHP script ? How do I get the order's information ? Is it in the processPaymentNotification function of hikashoppayment.php ?  Thanks a lot !")* was created by *[Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")*

-- HikaShop version -- : 2.6.1
-- Joomla version -- : 3.4.8
-- PHP version -- : 5.5.29

Hello,

I wish to perform some actions using my own PHP script after the payment is confirmed. I need to get all information about the order : customer (name, address, mail...), products, order id. Where can I call my PHP script ? How do I get the order's information ? Is it in the processPaymentNotification function of hikashoppayment.php ?

Thanks a lot !

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

10 years 8 months ago [\#228454](#228454) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[After payment is confirmed](/forum/29-payment-methods/882000-after-payment-is-confirmed#228454 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.29  Hello,  I wish to perform some actions using my own PHP script after the payment is confirmed. I need to get all information about the order : customer (name, address, mail...), products, order id. Where can I call my PHP script ? How do I get the order's information ? Is it in the processPaymentNotification function of hikashoppayment.php ?  Thanks a lot !")*

Hi,

You must use the "onAfterOrderUpdate" trigger and check the "order status" value.
You can also compare it with the $order-&gt;old-&gt;order_status if you want to check that the order status has changed.
[ www.hikashop.com/support/support/documen...l#onAfterOrderUpdate](https://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#onAfterOrderUpdate)

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

- **[Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")**
- [![Tsunoo's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar38515.png)](/forum/user/38515-tsunoo "View Tsunoo's Profile") Topic Author
- [ Offline](/forum/user/38515-tsunoo)

Less More

- Posts: 10
- Thank you received: 0
-
-
-
-

10 years 8 months ago [\#228516](#228516) by [Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")  Replied by *[Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")* on topic *[After payment is confirmed](/forum/29-payment-methods/882000-after-payment-is-confirmed#228516 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.29  Hello,  I wish to perform some actions using my own PHP script after the payment is confirmed. I need to get all information about the order : customer (name, address, mail...), products, order id. Where can I call my PHP script ? How do I get the order's information ? Is it in the processPaymentNotification function of hikashoppayment.php ?  Thanks a lot !")*

Thank you for your answer, but I need more information : where in the atos.php script should I insert a line "include 'myscript.php';" ? I am NOT trying to write a new plugin, so I do NOT use triggers. Or should I ?

Thanks a lot !

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84ODIwMDAtYWZ0ZXItcGF5bWVudC1pcy1jb25maXJtZWQ/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: 86290
- Thank you received: 14268
-
-

10 years 8 months ago [\#228576](#228576) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[After payment is confirmed](/forum/29-payment-methods/882000-after-payment-is-confirmed#228576 "-- HikaShop version -- : 2.6.1 -- Joomla version -- : 3.4.8 -- PHP version -- : 5.5.29  Hello,  I wish to perform some actions using my own PHP script after the payment is confirmed. I need to get all information about the order : customer (name, address, mail...), products, order id. Where can I call my PHP script ? How do I get the order's information ? Is it in the processPaymentNotification function of hikashoppayment.php ?  Thanks a lot !")*

Hi,

It would be better to write a separate plugin. That way, you wouldn't loose all your changes each time you update HikaShop.

But you can also directly write your PHP code in the onPaymentNotification function of the plugins/hikashoppayment/atos/atos.php, just after the line:
$this-&gt;modifyOrder($order_id, $order_status, $history, $email);
But again I don't recommend it.

To load all the data of an order, it's explained here:
[ www.hikashop.com/support/support/documen...umentation.html#code](http://www.hikashop.com/support/support/documentation/62-hikashop-developer-documentation.html#code)

The following user(s) said Thank You: [Tsunoo](/forum/user/38515-tsunoo "View Tsunoo's Profile")

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

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

[](#top)
