Need help with a payment button

I have a payment button that goes to paypal for a registration multi-step form. I need for either the payment to be recorded into a database or to redirect after the payment to a page where they can check a box that says payment is complete. Anyone know how to do either of these?

Hi,

you can either track a click event for the payment button which will insert certain data (e.g. payment processing) into a database.

You can also fetch data from paypal to track if the payment have been completed and then insert relevant value into a database.