Hey @abbasalibutt,
Yes, it is possible, AppBuilder is designed for this, to bring the code into the domain area, for example, as you want.
You should develop an application in Adobe AppBuilder and use webhooks to send requests to your microservice to confirm payment.
Make sure that the time just stated in the SLA agreement suits you
Regards,
Eugene