close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

WorldPay - Is the Cart ID on the WorldPay Payments admin pages taken from the SessionID? Would prefer the Order Number from my DB.

Thread began 5/22/2013 5:49 pm by Mark Kujoy | Last modified 6/26/2013 6:39 pm by Mark Kujoy | 13966 views | 2 replies |

Mark Kujoy

WorldPay - Is the Cart ID on the WorldPay Payments admin pages taken from the SessionID? Would prefer the Order Number from my DB.

Hi, I have just been running test payments through my worldpay gateway. I notice that the Cart ID that worldpay stores appears to look like the browser SessionID. I assume this is used to track the orders as its returned back to the browser. What if the connection drops or theres a problem returning back to the site to confirm the order. Could i send WorldPay the OrderID so i can easily find the order on my website CMS?

Im using PHP/MySQL

Thanks Mark.

Sign in to reply to this post

Jason ByrnesWebAssist

Yes, the cart ID uses the session ID:

php:
<input type="hidden" name="cartId" id="cartId" value="<?php echo session_id() ?>" />



It's best to leave the cart ID as the session ID, but you could add the ID from the orders table to the description.

on the confirm page, the description will use the FullDetails from the cart:

php:
<input type="hidden" name="desc" id="desc" value="<?php echo $yourCart->TotalColumn("FullDetails"?>" />



where yourCart is the name of your cart object.

you could concatenate the order ID session that is created to that:


double check the Store order Summary behavior to check the name of the session variable that will be created, for my example, the session being created is "eCart1_OrderID":

php:
<input type="hidden" name="desc" id="desc" value="<?php echo $yourCart->TotalColumn("FullDetails"?> ID:<?php echo((isset($_SESSION["eCart3_OrderID"]))?$_SESSION["eCart1_OrderID"]:""); ?>" />
Sign in to reply to this post

Mark Kujoy

Thanks Jason.

Ive modded to code on another site to use the orderID as the value passed to and from worldpay and it did make managing orders a bit easier. Bearing in mind that the customer gets a confirmation email from worldpay with the order number in. I initially had the site set up the default way but the customer hated it.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...