Officer Posted August 10, 2011 Share Posted August 10, 2011 Hello, I've successfully integrated a payment gateway that's provided by my local bank. The only remaining part which is quite confusing me is: how do I process the order after getting back from the bank website. The bank is sending me the information encrypted. I am decrypting the information and reading the values. Within the values there's a "ResponseCode". If the "ResponseCode" value is "1" then I should process the order and display a note to the end user on the screen telling them that their payment is accepted and to send them an email with the invoice. Which page in Prestashop should handle this part and how do I do this? I was thinking about how Cash-On-Delivery handles this after clicking the "confirm" button, but I couldn't figure it out! For simplicity, this is the algorithm I want to perform: if(ResponseCode==1) // Redirect the user to the success order page and send an email with the invoice and empty the cart end if Thank you in advance. Link to comment Share on other sites More sharing options...
Carolina Custom Designs Posted August 11, 2011 Share Posted August 11, 2011 I've never done this but I'm going to make a guess that that would be handled in confirmation.php. Just a guess so sorry if that doesn't help you. Marty Shue Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now