My application has some sensitive data and I would want to integrate with third party payment providers for making payments. Currently I have an API integration (JSON) with a third party system that is very customized in terms of data transfer and it is just one-way that I do not receive acknowledgement automatically and users have to change the status manually in my system.
My requirement I would want them to pull information from my system, make the corresponding payments and send the acknowledgement/payment advice files back for the corresponding ID. This solution has to be a generalised one like there will be two end points in my server for push and pull data respectively and in future any third party payment providers will use this without any customisation done at my end for them.
I have research about it in web and it seems for third party to pull the data they can use API and for pushing the response of payment Webhooks seems to be effective solution than using API/polling for this
Can anyone please help me on what is the best solution that could be done for this and how this needs to be implemented