Jump to content

WorldPay Response Handler Sets Wrong Order Status


Guest Ian @ saratoga

Recommended Posts

Guest Ian @ saratoga

When a payment is made via WorldPay, the WorldPay system sends a result message back to CubeCart.

If the WorldPay message indicates the transaction was cancelled or failed, CubeCart sets the order status to 'Processing'.

Surely it should set it to Cancelled or Declined instead?

Code:

/modules/gateway/worldpay/call.inc.php

The code calls:

$order->orderStatus(2, $_POST['cartId']);

The '2' signifying order status 'Processed'.

I think this should be '6' - meaning 'Cancelled'.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...