Hi to all,
I am developing a payment module in which the user enters card data on the bank's site and the bank returns a response to the site (https://stroyko.bg/en/module/fibankpos/validation) with the result: "trans_id" upon successful payment or a string starting with "error" - in case of error. When the payment is successful, I need to make another post request (cURL) to the bank, and retrieve the post variable "RESULT" from the bank's response. My question is how to process the result and redirect to order-confirmation? Currently it always redirects to: https://stroyko.bg/en/cart?action=show and the user is already logged out.
Thanks in advance!