How to make changes to the database once after receiving the payment / error from Razorpy

Hello everyone!

I’ve been working on an ERP system in which I use razorpay plugin to receive payments. Once the payment is received or failed I need to perform some workflows in backend but Its not working because the payment capturing will take some time by the time the workflows wont run because of false condition.

I need help regarding

  1. How to set up workflows after a function happened in razorpay
  2. How to set up seamless payment function module with our existing workflow.
    Please share any payment module built by anyone of you for reference

Thank you

You can use webhooks provided by razorpay to capture payments or use zapier to trigger workflows in bubble