-=peter=- Posted January 25, 2017 Share Posted January 25, 2017 Hi, I'm developing payment module in PS 1.7. On successful payment, the gateway will call validation url of the shop with supplied reference id. Now I'm in doubt, whether to create the order before (note, that the user can hit back and select another payment), or create the order in the callback? (callback is called later by the gw, so session is not available) Also what reference to use? I think cart id can be used, but the problem here is that meanwhile the user can open the shop in another tab and add products (probably not a big problem, i can test paid amount to prevent this). Thanks for advice. Link to comment Share on other sites More sharing options...
Knowband Plugins Posted February 1, 2017 Share Posted February 1, 2017 It would be better if you will create a separate controller for processing the payment and once the payment is done then just redirect your page to the validation controller of your payment method. You should send some parameters to the validation controller so that you can confirm your payment there also. Just confirm your payment there and then call the validateOrder method in the validation controller. It would be better if you will take the reference from default payment method modules of the Prestashop like bank wire or cashondelivery. Link to comment Share on other sites More sharing options...
anonymousdev Posted April 11, 2022 Share Posted April 11, 2022 @Knowband Pluginsbut Default payment modules like bankwire or cashondelivery doesnot show how to give return url or how to handle the POST parameter values through API. It is just a basic module. I don't know why does everyone keep saying that "refer default modules".🤷♀️ 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