Hi, I am working with a business logic where I am integrating a payment gateway. What I want is to save the status of payment in dataverse after payment so how can I do it?

Hi, I am working with a business logic where I am integrating a payment gateway. What I want is to save the status of payment in dataverse after payment so how can I do it?