- Specify a webhook url while creating the payment request.
- Save the payment request ID in your database when the payment request is created.
- On successful payment completion, a webhook is sent which includes the payment request ID and the payment ID. You can then map the payment request ID and the payment ID in your database accordingly.