Jump to content

Orders are not created after successful payment


Recommended Posts

I'm currently troubleshooting a PS installation for a client, but after many hours of debugging, I can't seem to find out why PS doesn't create an order when a successful payment has been made. It also doesn't send out any notification emails, although I've successfully tested PS's mail functionality.

 

The store offers both ideal-checkout and PayPal as valid payment options. I've done a successful test payment with the ideal module, but when it completes, nothing happens. We get a confirmation email from our bank, saying that the payment was completed, but no order shows up in the PS BO, nor is any email sent to the store owner or customer.

 

Any help in finding out the cause of this would be greatly appreciated.

 

Our configuration information:

 

Prestashop Version: 1.4.8.2

Server information: Linux #1 SMP Fri Jun 24 18:23:59 UTC 2011 x86_64

Server software Version: Apache

PHP Version: 5.2.14

MySQL Version: 5.1.51

Link to comment
Share on other sites

assuming the paypal works properly?

 

the ideal checkout is a custom payment module? Did you purchase it from somewhere? that would be the first place to look at, perhaps the module is not coded properly, or was not tested for your version of prestashop.

 

if you require developer services to troubleshoot the issue with that module, you can send me a PM and we can discuss in more specific details.

Link to comment
Share on other sites

PayPal and iDEAL (Dutch payment system) both work fine. I've tested iDEAL using a module provided by php-solutions.nl, which seems to be broadly used and should work without problems.

 

I've inserted numerous debug statements in the payment module's code, which shows that the hookPaymentReturn() method is never called. I'm not at all sure about the possible causes of this. I don't really feel comfortable billing more hours to my client for delving into the inner workings of PS, to find out why.

 

If anybody knows of any other angles that I could use, I'd be more than happy to try!

Link to comment
Share on other sites

paymentReturn will only be executed if you are reaching the orderconfirmation page, but since you already said in your first post that an order is not being created (correct me if I misunderstood), then that means the module is not working properly.

 

The first place I would look is the validateOrder function, which is executed by the payment module(iDEAL) and the function resides in the PaymentModule class.

Link to comment
Share on other sites

  • 7 months later...

Hello ro-achterberg

I have exactly same problem as yiu have.

In fact an orders are created but with CANCELLED status.

 

After you make payment and no order will appear onto the list, please go to the test customer accounr (account you used for making that order) and there will be incorrect order created. After you do change its status from cancelled to i.e. IN PREPARATION, this order will appear onto the normal orders list.

 

I have no idea what cause this issue. My PS is 1.4.7.0.

Link to comment
Share on other sites

  • 2 months later...

Hi all,

 

Did anyone find a solution to this problem? - it's driving me crazy!

 

The strange thing is that this module used to work perfectly for me (payment made successfully, order created, all relevant emails sent). The problem started when I downgraded my server from PHP 5.3 to 5.2 and then back to 5.3 - basically a module I was trying to install required a php extension which was incompatible with PHP 5.3, hence the downgrade. As it turned out this caused issues with other modules so I switched it back. I had assumed that this must have caused this problem but as others are having the same problem I'm now not so sure.

 

Based on feedback I'm getting from customers, once they have completed the transaction with iDEAL they are redirected back to the site and presented with the error message: Cart Cannot Be Loaded Or An Order Has Already Been Placed Using This Cart. This also triggers an email alert to me telling me to view the log (tools > log). I then have to find the relevant cart and convert it to an order using shokinro's order recovery module. The exact same problem happens with the sofortbanking module (Directebanking), which is part of the same module. Fixing this problem is made worse because I don't have either a Dutch or German bank account so I can't reproduce (and possibly debug) the problem myself.

 

It's causing major problems - customers sometimes think the payment failed so try numerous times, so make multiple payments, sometimes they clear their cart so I have to contact them to find out what they ordered!

 

There is also another problem with this module (with currency restrictions) which I described in this post.

 

I've tried contacting the developer about both of these issues but I'm not getting any response - it's a free module so I'm not complaining.

 

@bellini13 If this is something you think you may be able to solve as a paid job please PM me.

Link to comment
Share on other sites

  • 2 years later...

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...