Jump to content

Archived

This topic is now archived and is closed to further replies.

Guest fiddy

3.0.1 | Worldpay | confirmed.php.. Working?

Recommended Posts

Guest fiddy

Hi,

I've been using v2 for a few years and love it. easy to integrate (YCRTA 'fiddle with ). What I'm trying to say is I know how to get CC working with WP

Trying to upgrade to 3.0.1 (looks much slicker BTW, very nice. Get coupons sorted and I'll be your friend for life :) )

.. but I'm falling over at the worldpay hurdle. Data gets sent to WP no trouble. payment goes through fine, but nothing seems to come back to the shop to update the order status - they're all 'Pending'.

Callback url points to confirmed.php nicely, 'callback enabled' ticked, yada, yada.

So has anyone got 3.0.1 working in unison with WorldPay ?

Cheers

Stu

Share this post


Link to post
Share on other sites

Guest

Oh i have just got a big headache from remembering the trouble i had getting ver2 to work with wp first off.

All i can suggest if you have got that far with it its prolly wp end i know when i set up my first account with them i had to call them direct and go through a test purchase so they could set the perameters up as they were not configured for cubecart yet.

Just a thought but with the fact that v3 is completly different maybe a quick phone call will resolve this.

HTH

Share this post


Link to post
Share on other sites
Guest benseb

Hi

No, 3.0.1 and 3.0.2 do not update the order status at present. If you set the callback URL in your Worldpay settings it will call the CubeCart confirmed.php page, but it is broken and asks you to log in.

I have filled a bug for this and hope it gets sorted quickly, as it's causing major headaches having to manually update very single order!

Ben

Share this post


Link to post
Share on other sites
Guest fiddy

Cheers Ben. Now I know I'll stop checking other stuff and get onto re-writing confirmed.php :)

My v2 version looks like a good place to start. I was never entirely satisfied that it just updated the order status (and put a 'c' somewhere IIRC) anyway, you could do that manually and could never be 100% sure a year later if it was WP or something else that updated it, so I changed it to squirt some of the WP callback data into the order_sum table too. Currency|value|card issuer's response

Share this post


Link to post
Share on other sites

Can somebody try this for me. I'm 95% sure it will work.

Make sure you check the admin config settings first as it comtains notes about the return url.

WorldPay.zip

Share this post


Link to post
Share on other sites

Great let me know how you get on. If there are any problems I would appreciate it if someone could volunteer to give me acess to their server / worldpay / store admin to get it fixed up.

100% confidentiality assured.

Share this post


Link to post
Share on other sites

Please can anyone help me get this fixed today for the release tomorrow.

I need someone with 3.0.1 and a worldpay account to get Select Checkout method working.

I have rewritten the code and desperately need to test it.

Share this post


Link to post
Share on other sites
Guest benseb

Hi

Doesnt work im afraid

In the confirmed.php file you redirect the page - which you cant do on Worldpay

// FIX FOR WORLDPAY

if(isset($_POST['transId']) && isset($_POST['MC_OID'])){

header("Location: ".$GLOBALS['storeURL']."/confirmed.php?oid=".$_POST['MC_OID']."&g=wp");

exit;

} elseif(isset($_GET['g']) && $_GET['g']=="wp" && isset($_GET['oid'])) {

$basket['gateway'] = "WorldPay";

$basket['cart_order_id'] = $_POST['MC_OID'];

}

This is giving an error - you cant do any redirects with Worldpay callbacks

Nearly there though?

Ben

Share this post


Link to post
Share on other sites

This version isn't supposed to redirect back to there.

Login to admin of your store and check the URL specified there by CubeCart. Also make sure you upload the new confirmed.inc.php in that archive.

It should be something like http://www.domain.com/store/modules/gatewa...y/confirmed.php

Share this post


Link to post
Share on other sites
Guest benseb

getting there...

Warning: main(modules/affiliate//tracker.inc.php): failed to open stream: No such file or directory in /home/vhosts/xxxx/httpdocs/shop2/includes/content/confirmed.inc.php on line 88



Warning: main(): Failed opening 'modules/affiliate//tracker.inc.php' for inclusion (include_path='/usr/local/psa/admin/plib:/usr/local/psa/admin/javascripts:/usr/local/psa/admin/plib/locales:/usr/local/psa/admin/auto_prepend:/usr/local/psa/admin/htdocs/domains/databases/phpMyAdmin:/usr/local/psa/admin/htdocs/domains/databases/phpPgAdmin:/usr/local/share/smarty:.') in /home/vhosts/xxxx/httpdocs/shop2/includes/content/confirmed.inc.php on line 88

Search for:

Welcome back Ben Sebborn [Logout | Your Account]

Useful Links



    * Homepage





Confirmation Screen

Basket » Address » Payment » Complete



Thank you, your order was successful! Please visit again soon.



About Us | Contact Us | Privacy Policy | Terms & Conditions

Share this post


Link to post
Share on other sites
Guest benseb

ps.. it DID keep me logged in and all the images worked ;)

Share this post


Link to post
Share on other sites
Guest benseb

just reuploaded that file, still same error

Share this post


Link to post
Share on other sites

To make 100% sure these are the files you need to replace. All of them.

Triple check the admin settings and thet the WorldPay call back URL is correct on the world pay side.

WorldPay_3.zip

Share this post


Link to post
Share on other sites

Ok thanks for that... Let me have nother look...

By the way, thanks so much for you help here. ;)

Share this post


Link to post
Share on other sites
Guest fiddy

ah. you want me to get 'use callback response' ticked?

Share this post


Link to post
Share on other sites

Errrm. Maybe not actually. Try it and see.

The error below is not to do with WorldPay:

Failed opening 'modules/affiliate//tracker.inc.php' for inclusion.

Thinking cap.....

Share this post


Link to post
Share on other sites
Guest fiddy

if you want some inspiration, have a look in <myserver>/shop/confirmed.php for my tweaked ver2 one.

Share this post


Link to post
Share on other sites
Guest benseb

you will need USE CALLBACK RESPONSE enabled

the final (?) error is due to a cubecart error at the moment, hopefully will be sorted soon!

Share this post


Link to post
Share on other sites

Actually that error is a good sign.... it means the order should be updated...

Thinking........

... I do faaaaaaaaaaaaar too much of that!

Share this post


Link to post
Share on other sites

you will need USE CALLBACK RESPONSE enabled

the final (?) error is due to a cubecart error at the moment, hopefully will be sorted soon!

Thanks for the info.

I just need to fix up the other error...

Share this post


Link to post
Share on other sites

×
×
  • Create New...