close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Using the Update record wizzard for updating worldpay payment response

Thread began 5/10/2012 2:10 pm by bill3786 | Last modified 5/18/2012 12:20 pm by bill3786 | 2314 views | 13 replies

bill3786

For any body following this thread this was the result of the ticket and the process is working correctly now.

The first part of the worldpay payment response page which updated the orders table with the worldpay reference did not work because the hidden form element being sent to worldpay was incorrect for the cartId on the confirm page.

It was set by default as <input type="hidden" name="cartId" id="cartId" value="<?php echo session_id() ?>" />

But should have been <input type="hidden" name="cartId" id="cartId" value="<?php echo $_SESSION["eCart1_OrderID"] ?>" />

The value of the Key column for the Update Record behaviour on the payment response page was incorrect and was changed from

$WA_where_fieldValuesStr = "".((isset($_POST["transId"]))?$_POST["transId"]:"") ."";

to

$WA_where_fieldValuesStr = "".((isset($_POST["cartId"]))?$_POST["cartId"]:"") ."";

Also the second part of the worldpay payment response page which sends a confirmation email to the shopper and merchant didnt work because the email body was using an email friendly cart display.

The problem is that the payment response page being returned does not have any cart details.

The session is lost, so you can't use any session variables to keep track of data and this includs the shopping cart. So you need to pass information you can use to look up the cart details and use that to create a recordset that you can use to reconstruct the data you want included in the email.

Therefore the email body should be displaying the relevant details from the orders and ordersdetails tables using a recordset within a repeat region.

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