- Posts: 32
- Thank you received: 2
Re: Run a script after payment confirmed?
14 years 10 months ago #31801
by GeoffM
Run a script after payment confirmed? was created 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.
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.
14 years 10 months ago #31834
by nicolas
Replied by nicolas on topic Re: Run a script after payment confirmed?
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.
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.
6 years 2 months ago #322145
by sadaf3d
Replied by sadaf3d on topic Re: Run a script after payment confirmed?
hi. @nicolas
is there any new way? are you still on this suggestion? create plugin?
is there any new way? are you still on this suggestion? create plugin?
Please Log in or Create an account to join the conversation.
6 years 2 months ago #322146
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Re: Run a script after payment confirmed?
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,
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