Store is completing order before payment...

  • Thread starter Thread starter AndyBlack
  • Start date Start date
A

AndyBlack

Hi,

Just wondering if someone can help me. I have had loads of problems with setting up this particular 'oscommerce store/template.

The problem I have now and I have only just noticed, is that it is completing the order before it processes payment. So at the point of the site directing to the 'Worldpay' payment page, it completes the order in my admin panel... although it doesn't send an order confirmation email.

So, if someone doesn't complete payment, it shows up in my admin panel as a completed order.

Does anyone know what might be causing this?

Thanks

Andy
 
Which e-commerce platform are you using? If you're using a custom development it might just be a flaw in the logic running behind the website; your developer could possibly have a look at it to set the order to "pending" allowing you to process the order and mark it as "complete" manually.

Or i'll have a look at it :)
 
Upvote 0
Have a look at the order status (both the order's status and what your payment module is set up to change the status to).

When oscommerce uses offsite payments, the recommended way to do this (at least using a properly implemented PayPal IPN module) is:

1. Before user goes offsite to make payment, osCommerce creates the order and gives it a status of pending

2. When the offsite payment is successful, the offsite processer uses a callback to notify osCommerce of this, at this stage osCommerce can set the status to processing and perhaps send out emails then.

3. Alternatively emails can be sent out if and when the user returns to osCommerce (doing this at stage 2 is better)

But the important point here is that osCommerce should be creating the order (with a status of pending) before sending the user offsite to make the payment. That way you know what the order is. A lot of things can happen once the user is offsite, they may drop out and not make a payment, they may make a payment and not return to your site, the offsite processor site may be down, your site might go down or be unavailable (due to other internet networking issues) to receive the callback once the user has paid, etc so it is important that the order is registered first (and that you manually follow up and try to match all orders with payments).

An order should only have a status of complete once the product has been shipped, and you should change this manually.
 
Last edited:
Upvote 0

Latest Articles