Jump to content

validateOrder triggered two times from callback


jedi1983
 Share

Recommended Posts

Hi Guys,

Right now we are having some issues with our Payment Provider, they have a callback to create order (from Cart -> order), but seems at some random time, those order creation (using validateOrder methods on paymentModule) created 2 times, so we have 2 orders with the same cart id and different reference number.

i put logs on the paymentModule.php and seems the order creation is at the same exact time.

do anyone experienced this issue before, and is there any workaround for this kind of issue?.

thank you guys!.

Share this post


Link to post
Share on other sites

4 minutes ago, Guest said:

I do not understand.
Do you use any module for the payment of an external payment method?

Yes we have use External Payment Method, this payment method have a validation.php file (which use validateOrder to create order from Cart) and it seems those functionality get called twice at the same time, logs of server showed only 1 called though that's why it's puzzled me

Share this post


Link to post
Share on other sites

  • 3 weeks later...
On 12/4/2020 at 1:12 AM, 4you.software said:

Please also write the name of the payment module.

hello sorry i just read this one, Actually we are using Prestashop 1.7.4.0 and module payment is custom made by Razer Payment System.

Share this post


Link to post
Share on other sites

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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More