Post by Thing1 » Mon Dec 06, 2010 6:07 pm

Hello,

I am having a problem with Payment Express not completing sales. The credit card transaction has been accepted by DPS and the correct response is sent back, but OpenCart treats the reply as unknown and drops the user back into the 'checkout confirmation' page.

Did a bit of debugging and can't figure why $_REQUEST is used to find the merchant reference:
\catalog\controller\payment\paymentexpress.php in function callback2()

if (isset($_REQUEST['MerchantReference'])) {
$order_id = $_REQUEST['MerchantReference'];
} else {
$order_id = 0;
}

The problem I find is $_REQUEST contains an encoded string, and is not in XML format, therefore there is no 'MerchantReference' tag in the string; hence the $order_id is set to 0 and processing pretty much stops.

Can you offer any help?

Thing1

Newbie

Posts

Joined
Fri Nov 19, 2010 4:42 pm

Post by Qphoria » Tue Dec 07, 2010 12:33 am

There was a bug in it that I fixed last week. Please get the latest version from the download page if you haven't already

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Thing1 » Tue Dec 07, 2010 4:22 am

Thanks for the help!

Newbie

Posts

Joined
Fri Nov 19, 2010 4:42 pm

Post by Thing1 » Tue Dec 07, 2010 3:40 pm

Hello,

Still having problems with failed transactions. Update works fine for successful transactions.

A transaction that is cancelled by the user, or declined by Payment Express is treated as a successful sale by Opencart.

Thing1

Newbie

Posts

Joined
Fri Nov 19, 2010 4:42 pm

Post by Qphoria » Tue Dec 07, 2010 9:01 pm

ok i'll check that. Even tho they are successful, does the status show "Pending" instead of processing? Assuming your system setting default order status = pending and the payment express status = processing

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by Thing1 » Wed Dec 08, 2010 2:34 am

Yes, order status gets set to pending.

Customer gets sent email telling them their order was successful.

Thanks

Newbie

Posts

Joined
Fri Nov 19, 2010 4:42 pm
Who is online

Users browsing this forum: Amazon [Bot] and 3 guests