hikashopPaymentPlugin for Authorize.net

  • Posts: 6
  • Thank you received: 0
9 years 1 day ago #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(&$order,&$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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 12 hours ago #221836

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
9 years 7 hours ago #221934

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 or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
8 years 11 months ago #221947

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 & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 6
  • Thank you received: 0
8 years 11 months ago #222095

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.

Attachments:
Last edit: 8 years 11 months ago by slocke. Reason: Add information.

Please Log in or Create an account to join the conversation.

  • Posts: 82867
  • Thank you received: 13373
  • MODERATOR
8 years 11 months ago #222103

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 or Create an account to join the conversation.

Time to create page: 0.052 seconds
Powered by Kunena Forum