Guest fiddy Posted July 31, 2005 Share Posted July 31, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest Posted August 1, 2005 Share Posted August 1, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest benseb Posted August 1, 2005 Share Posted August 1, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest fiddy Posted August 1, 2005 Share Posted August 1, 2005 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 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 10, 2005 Share Posted August 10, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest fiddy Posted August 10, 2005 Share Posted August 10, 2005 cheers mate, willdo. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 10, 2005 Share Posted August 10, 2005 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. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 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. Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 I have gone over and over the manul. Here is the latest version which I am sure will work. Famous last words...WorldPay_2.zip Quote Link to comment Share on other sites More sharing options...
Guest benseb Posted August 11, 2005 Share Posted August 11, 2005 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 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest benseb Posted August 11, 2005 Share Posted August 11, 2005 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 Quote Link to comment Share on other sites More sharing options...
Guest benseb Posted August 11, 2005 Share Posted August 11, 2005 ps.. it DID keep me logged in and all the images worked ;) Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 Kool. Let me check the code a sec... ;) Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 Did you update your includes/content/confirmed.inc.php with this one?confirmed.inc.php Quote Link to comment Share on other sites More sharing options...
Guest benseb Posted August 11, 2005 Share Posted August 11, 2005 just reuploaded that file, still same error Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 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 Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 In WorldPay... (I dont have a worldpay account) Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 Ok thanks for that... Let me have nother look... By the way, thanks so much for you help here. ;) Quote Link to comment Share on other sites More sharing options...
Guest fiddy Posted August 11, 2005 Share Posted August 11, 2005 ah. you want me to get 'use callback response' ticked? Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 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..... Quote Link to comment Share on other sites More sharing options...
Guest fiddy Posted August 11, 2005 Share Posted August 11, 2005 if you want some inspiration, have a look in <myserver>/shop/confirmed.php for my tweaked ver2 one. Quote Link to comment Share on other sites More sharing options...
Guest benseb Posted August 11, 2005 Share Posted August 11, 2005 you will need USE CALLBACK RESPONSE enabled the final (?) error is due to a cubecart error at the moment, hopefully will be sorted soon! Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 Actually that error is a good sign.... it means the order should be updated... Thinking........ ... I do faaaaaaaaaaaaar too much of that! Quote Link to comment Share on other sites More sharing options...
Al Brookbanks Posted August 11, 2005 Share Posted August 11, 2005 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.