Post by phobostech » Thu May 20, 2010 7:12 pm

I have just set up a new site and used this module for the first time. I have found two problems:

1. You initially get a number of re-direct pages when transfering to the worldpay site.
2. When a transaction is completed, you are not automaticly redirected back to the store.

The first problem I have already solved, in the worldpay module, the code calls an old RBS URL, this needs to be updated as follows to "https://secure.wp3.rbsworldpay.com/wcc/purchase"

The second issue, not getting an automatic redirect back to the site I have currently not resolved, if you press the manual redirect on the final RBS conformation page it works fine, just does not redirect back automaticly within the 10 seconds stated.

Does anyone know how to fix this second issue

User avatar
Newbie

Posts

Joined
Thu May 20, 2010 7:02 pm
Location - Uxbridge, UK

Post by Qphoria » Thu May 20, 2010 10:15 pm

Sounds like maybe RBS' site isn't auto-redirecting properly?

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by phobostech » Thu May 20, 2010 11:06 pm

We have already contacted world pay and they responded with the following:

Thank you for your email.

May I know for the below callback script:
http://www.celiaskitchen.co.uk/store/in ... y/callback

Are you using the Javascript method to redirect your shoppers back to your website? If that is the case, I am afraid that this can no longer be done due to security reasons after our technical change last year. However, you may use HTML meta refresh method to redirect your shoppers back to your website. Please kindly find attached sample code on how to use HTML meta refresh for your reference.

Please do not hesitate to contact us should you require our further assistance or clarification.

Best Regards,
Dennis Lee
Tech Support

And the following sample code

<html>
<title>Testing HTML meta refresh</title>
<head>
<!-- Page will refresh and redirect in 5 seconds -->
<meta http-equiv="refresh" content="5;url=http://www.yourwebsite.com/script.exten ... er2=value2" />
</head>
<body>
<html>
<body>
<wpdisplay item=banner> ....you will be redirected in 10 seconds. If not, please click <A HREF="http://www.mysite.com/">here</A>
</body>
</html>


However this is a bit beyond my understanding, and to me it does not make sense, Like the first comment by Qphoria, I think this is an 'RBS site' issue, I don't see how the opencart code has any control at that stage.

User avatar
Newbie

Posts

Joined
Thu May 20, 2010 7:02 pm
Location - Uxbridge, UK

Post by Qphoria » Thu May 20, 2010 11:39 pm

Yea, that doesn't make sense to me.
I don't have worldpay, but I assume it works like Paypal
Checkout->Goto Worldpays site to pay->Get Worldpay success->Redirect back to your site.

The Worldpay success page is what would need to do the redirect based on that design. There is nothing to script as it is their site.

Unless they allow you to have a custom success page and allow you to add redirect code, but redirecting back to the callback seems like basic functionality that all offsite payment gateways should have.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by phobostech » Thu May 20, 2010 11:59 pm

I will go back to worldpay support, now I have a little more confidence that their first answer was incorrect.

I will post their response once I receive it.

Thanks

User avatar
Newbie

Posts

Joined
Thu May 20, 2010 7:02 pm
Location - Uxbridge, UK

Post by phobostech » Fri May 21, 2010 12:21 am

Just spoken to worldpay again, they claim that although the URL of the final page is theirs, it is generated by the opencart call back script. It is this script that must be changed they claim.

I have attached below a copy of the page, as its just the text, its not formatted correctly, but this should be sufficent to identify if its from the opencart code:

Thank you for shopping with Celia's Kitchen Store ....

Response from WorldPay:
Thank you, your payment was successful
Merchant's Reference: 24
RBS WorldPay Transaction ID: 1084405565
Please contact RBS WorldPay immediately if there has been a problem making your payment.
... your payment was successfully received.

Please wait... whilst we finish processing your order.
If you are not automatically re-directed in 10 seconds, please click here.


I will take a look at this myself later today, but if anyone now recognises the problem, please let me know.

User avatar
Newbie

Posts

Joined
Thu May 20, 2010 7:02 pm
Location - Uxbridge, UK

Post by Qphoria » Fri May 21, 2010 12:30 am

Ok i will take a look

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by phobostech » Fri May 21, 2010 12:45 am

Found the problem...

opencart_v1.4.7\upload\catalog\view\theme\default\template\payment

The two worldpay modules 'success' and 'failure' are using Javacode for the redirect. I will fix the problem shortly and post the new PHP on this forum.

User avatar
Newbie

Posts

Joined
Thu May 20, 2010 7:02 pm
Location - Uxbridge, UK

Post by phobostech » Fri May 28, 2010 4:15 am

In both the worldpay 'success' and 'failure' scripts, remove the following javacode lines:

<script type="text/javascript"><!--
setTimeout('location = \'<?php echo $continue; ?>\';', 2500);
//--></script>

And then add within the <head> section, just after the <title> definition the following line:

<meta http-equiv="refresh" content="5;url=<?php echo $continue; ?>">

This will then automaticly redirect the final worldpay page back to your store after 5 seconds.

This change is required as Worldpay no longer allow java script to be run on the redirect page.

User avatar
Newbie

Posts

Joined
Thu May 20, 2010 7:02 pm
Location - Uxbridge, UK

Post by Qphoria » Fri May 28, 2010 4:37 am

great. I'll add it to 1.4.8

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by vik007 » Tue Sep 07, 2010 6:29 pm

Hi all,

I have instlled worldpay however I have a problem when a customer makes a purchase;

1. The order cannot be seen in my admin area
2. The customer cannot view "previous order history in their account"

Can anyone please advise what this could be?

Thank you

New member

Posts

Joined
Sun Jul 25, 2010 4:03 am

Post by iclebyte » Thu Dec 09, 2010 7:18 pm

Am I correct in thinking that the only Worldpay module is the one which Q maintains?

http://theqdomain.com/ocstore/worldpayx ... d=worldpay

Newbie

Posts

Joined
Sun Oct 24, 2010 12:34 am

Post by th7dude » Tue Dec 28, 2010 4:51 am

I've been checking the forum for weeks and there doesn't seem to be a solution to this problem unless you buy Q's different module.

Newbie

Posts

Joined
Mon Dec 06, 2010 3:35 am
Who is online

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