Hook after payment Membership Pro

Hello,
We need to insert some data with a SQL-Query when a payment is done or a renewal is completed.
What and where is de hook for that?

Greets.