Skip to main content

Re: Run a script after payment confirmed?

More
14 years 10 months ago #31801 by GeoffM
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.

More
14 years 10 months ago #31834 by nicolas
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.

More
6 years 2 months ago #322145 by sadaf3d
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.

More
6 years 2 months ago #322146 by Jerome
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.

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

Time to create page: 0.169 seconds
Powered by Kunena Forum