Re: Run a script after payment confirmed?

  • Posts: 32
  • Thank you received: 2
13 years 3 weeks ago #31801

I've looked at this a few times and keep getting lost. What I simply want to do is have my own PHP script called with order parameters when payment has been confirmed. What I need to do is generate a license record in an existing custom database, based on HikaShop giving me details of the order - which products were ordered.

Firstly, which edition of HikaShop do I need for this? Second, which function/callback is most appropriate?

Many thanks.

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

  • Posts: 83025
  • Thank you received: 13405
  • MODERATOR
13 years 3 weeks ago #31834

Hi,

You can do that with all the editions of HikaShop.

You should create a hikashop plugin and implement the function onAfterOrderUpdate as explained there:
www.hikashop.com/en/support/documentatio...l#onAfterOrderUpdate
You can look at the history plugin file: plugins/hikashop/history.php for an example.

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

  • Posts: 201
  • Thank you received: 7
4 years 5 months ago #322145

hi. @nicolas
is there any new way? are you still on this suggestion? create plugin?

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

  • Posts: 26166
  • Thank you received: 4030
  • MODERATOR
4 years 5 months ago #322146

Hello,

If you do want to call some custom PHP script when an order is confirmed ; yes the creation of a custom plugin is the best place to put your custom PHP code.

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.

Time to create page: 0.069 seconds
Powered by Kunena Forum