After creating a link you can listen to order.updated and payment.created and payment.updated webhook events. Also when a customer pays a generated link they are redirected to either your configured redirect_url
or out redirect page and we append the order_id
in the URL. You can pull that order_id
to update your database.