Jump to content

Custom Payment Module with redirections


zhelyo

Recommended Posts

Posted (edited)

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!

Edited by zhelyo (see edit history)
Link to comment
Share on other sites

  • zhelyo changed the title to Custom Payment Module with redirections

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...