Jump to content

3.0.1 | Worldpay | confirmed.php.. Working?


Guest fiddy

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

Link to comment
Share on other sites

  • Replies 61
  • Created
  • Last Reply

Top Posters In This Topic

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

Link to comment
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

Link to comment
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

Link to comment
Share on other sites

  • 2 weeks later...
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

Link to comment
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

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...