Jump to content

How to get access to purchasing info in a module

Recommended Posts

I would like to bind a function that on every 'product-purchased' or 'order-sent' event  access to some client informations and order id. Just that. And since is my first plugin I'm finding it quite difficult and I don't where to insert myself in order to retrieve that data.

I looked for some hooks I could use, and I found paymentReturn, which is called when the user is sent back to the store after having paid on the 3rd-party website, or paymentConfirm, called when an order's status becomes "Payment accepted" (I don't know what kind of information I have access the moment these hooks are being called, so I don't know which one to choose): is this correct? There is a better way to do it?

Edited by francesca (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More