I make a shop on Laravel, I use the Omnipay v3 + library to use the necessary drivers for working with payment systems (I am now trying to do it for InterKassa) and a wrapper for Laravel barryvdh / laravel-omnipay . Made the process of placing an order on your website, going to the page of the InterKassa payment system, paying back in the payment system itself, redirecting back to the store to the indicated pages if the payment is successful or not successful (returnUrl / cancelUrl in omnipay). Also in the settings of the InterKassa checkout itself I indicated the URL ("Interaction URL") for sending payment information to my website - (notifyUrl to Omnipay). I can not figure out how to process the response from the payment system, which the payment system sends to my notifyUrl and get the status of the payment, using the Omnipay library and its drivers for this. I can get the response parameters from the payment, for example in the $ _GET array, (in Laravel $ request-> all ()), but it turns out that there will be different arrays from different payment systems, different parameters. In general, can this answer be somehow processed using the Omnipay driver and get a unified payment status, for example, something like this: if ($ response-> isSuccessful ()) {// ...}
In the documentation in the examples, something is there, but this is either not what I’m using or I don’t use https://github.com/thephpleague/omnipay#tldr . Here I understand the processing of the response from the payment, immediately after sending the payment data ..