Hi guys
I am implementing payment provider which have separate callback url on which they send informations on changes in transaction status.
This is from documentation: "Merchant can offer an URL endpoint where data will be sent, using HTTP POST method, on every successful change of transaction status. So, if the transaction is preauthorized, authorized, completed, voided or refunded, PayWay will send relevant information at provided URL. After merchant has implemented the endpoint on their side, they must deliver URL endpoint to PayWay so it can be configured. PayWay can send transaction report through standard ports for HTTP and HTTPS. If custom port must be used, then available ports are the ones in range from 50001 to 50010."
This is different url then cart/order return url and is important because sometimes clients after making payments do not wait for provider to retunr to shop page so the trnasaction in DW is not set to completed even the payment is made.
My question is how to implement listener (I presume using Notificaiton subscriber) on some end point (for example /payway/callback) that can get this post request and check if order is set to completed or not and make needed cahens to order (which notification subscribers). Examples of paymentproviders (for example QuickPay) have this done inside the return url.
Thank you in advance!
Ivan