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

#   hikashopPaymentPlugin for Authorize.net

##

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

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 11 months ago [\#221834](#221834) by [slocke](/forum/user/32152-slocke "View slocke's Profile")  *[hikashopPaymentPlugin for Authorize.net](/forum/31-development/880675-hikashoppaymentplugin-for-authorize-net#221834 "-- HikaShop version -- : 2.6.0  We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.  We're using the plugin trigger: function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.")* was created by *[slocke](/forum/user/32152-slocke "View slocke's Profile")*

-- HikaShop version -- : 2.6.0

We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.

We're using the plugin trigger:
function onAfterOrderUpdate(&amp;$order,&amp;$send_email)

This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MDY3NS1oaWthc2hvcHBheW1lbnRwbHVnaW4tZm9yLWF1dGhvcml6ZS1uZXQ/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 11 months ago [\#221836](#221836) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashopPaymentPlugin for Authorize.net](/forum/31-development/880675-hikashoppaymentplugin-for-authorize-net#221836 "-- HikaShop version -- : 2.6.0  We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.  We're using the plugin trigger: function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.")*

Hi,

The trigger "onAfterOrderUpdate" is called on all "hikashop", "hikashoppayment", "hikashopshipping", "system" Joomla plugin.
As long as the plugin is published and loaded by Joomla ; if the plugin define the function, that function will be called.

Regards,

---

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 11 months ago [\#221934](#221934) by [slocke](/forum/user/32152-slocke "View slocke's Profile")  Replied by *[slocke](/forum/user/32152-slocke "View slocke's Profile")* on topic *[hikashopPaymentPlugin for Authorize.net](/forum/31-development/880675-hikashoppaymentplugin-for-authorize-net#221934 "-- HikaShop version -- : 2.6.0  We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.  We're using the plugin trigger: function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.")*

I'm sorry, but where might that be in the Authorize plugin?

I see onAfterOrderCreate and onAfterOrderConfirm. It uses the onAfterOrderCreate to send email based on the response code.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MDY3NS1oaWthc2hvcHBheW1lbnRwbHVnaW4tZm9yLWF1dGhvcml6ZS1uZXQ/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 11 months ago [\#221947](#221947) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[hikashopPaymentPlugin for Authorize.net](/forum/31-development/880675-hikashoppaymentplugin-for-authorize-net#221947 "-- HikaShop version -- : 2.6.0  We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.  We're using the plugin trigger: function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.")*

Hi,

I am very sorry but I don't understand anything of your last message.

If you have some issue with a custom plugin : please explain clearly your issue and what you want to perform.

Regards,

---

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

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

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

Less More

- Posts: 6
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#222095](#222095) by [slocke](/forum/user/32152-slocke "View slocke's Profile")  Replied by *[slocke](/forum/user/32152-slocke "View slocke's Profile")* on topic *[hikashopPaymentPlugin for Authorize.net](/forum/31-development/880675-hikashoppaymentplugin-for-authorize-net#222095 "-- HikaShop version -- : 2.6.0  We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.  We're using the plugin trigger: function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.")*

We created a plugin that sends our order to our drop-shipper, but of course only after payment is confirmed.

We use 2 payment gateways, PayPal and Authorize.net.

We were using the onAfterOrderUpdate trigger, but this results in only PayPal orders being transmitted since an order is created and then updated when payment is confirmed. However, Authorize.net doesn't work that way, the order is created at the time it is confirmed.

Now we are trying to figure out how to include the Authorize orders as well.

Last edit: 10 years 11 months ago by [slocke](/forum/user/32152-slocke "View slocke's Profile"). Reason: Add information.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg4MDY3NS1oaWthc2hvcHBheW1lbnRwbHVnaW4tZm9yLWF1dGhvcml6ZS1uZXQ/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: 86292
- Thank you received: 14270
-
-

10 years 11 months ago [\#222103](#222103) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[hikashopPaymentPlugin for Authorize.net](/forum/31-development/880675-hikashoppaymentplugin-for-authorize-net#222103 "-- HikaShop version -- : 2.6.0  We have written a custom hikashop plugin for a client that allows us to send order data to our drop-shipper's api so that they can fulfill our orders for us.  We're using the plugin trigger: function onAfterOrderUpdate(&amp;$order,&amp;$send&#95;email)  This method is not being called for the authorize plugin. This method is being called for the paypal plugin. I dug a bit deeper into the payment plugin for authorize and I'm not able to confirm the onPaymentNotification is being called at all for that plugin. I'm a bit puzzled here as to why this isn't working.")*

Hi,

So from what I understand you're using the Authorize.net plugin with the AIM API. In that case, it's the trigger onAfterOrderCreate where you need to do your processing.
So you'll have to add a check to do it there only if the order_status of the $order is already set to "confirmed".

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

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

[](#top)
