lgfocus Posted August 18, 2016 Share Posted August 18, 2016 Once the payment is accepted, I need to send a request for an ebook to another website. I have a module that will do this within my main website wherein my store resides. Need help to determine where in PrestaShop I would put the call to a module that would call outside the store. Link to comment Share on other sites More sharing options...
bellini13 Posted August 18, 2016 Share Posted August 18, 2016 You would likely want to use the actionvalidateorder hook. This hook will be triggered once for each new order created. You can then send a remote request. Just bear in mind that if your remote request fails, or takes a long time, then the Order creation may fail, and the customer will see an error. So make sure you design/program to deal with those types of errors. Link to comment Share on other sites More sharing options...
lgfocus Posted August 19, 2016 Author Share Posted August 19, 2016 Since I only want to do this if the order status is payment accepted, would I use actionPaymentConfirmation? Also, where would I put this hook? Link to comment Share on other sites More sharing options...
bellini13 Posted August 19, 2016 Share Posted August 19, 2016 Since I only want to do this if the order status is payment accepted, would I use actionPaymentConfirmation? Also, where would I put this hook? You can use any hook you want to use. You put the hook in your module. There is a complete developers guide in the Learn > Documentation menu above Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now