Jump to content

How to know that the order is payed ? (hook)


ZiedDams

Recommended Posts

Hello, if you want to execute the code when you create the order you can use the 'paymentReturn' hook.

If you want to execute a code when you change the status of the order you can use the hook "actionPaymentConfirmation"

If you have a custom order State u should check if the option "Turn order as Paid" is true.

Edited by RensR (see edit history)
  • Thanks 1
Link to comment
Share on other sites

Just now, RensR said:

Hello, if you want to execute the code when you create the order you can use the 'displayOrderDetail' hook.

If you want to execute a code when you change the status of the order you can use the hook "actionPaymentConfirmation"

If you have a custom order State u should check if the option "Turn order as Paid" is true.

thank you so much for your time and solutions 😀 , I was actually using the hook ActionOrderStatusUpdate and test on the new OderState is payed or not, But i think the hook actionPaymentConfirmation is better because i will not check if the order is payed .

Link to comment
Share on other sites

imagem.thumb.png.2d79ce489209cd114711227f42c607e2.png

I'm happy for help you, Some people report that they had to make modifications to this hook when using "Custom order states". if you have any problem you can check the code in /classes/order/orderHistory.php changeIdOrderState()

  • Thanks 1
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...