HighDots Forums  

Worldpay callback.asp page

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Worldpay callback.asp page in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
p.g.
 
Posts: n/a

Default Worldpay callback.asp page - 06-22-2004 , 08:06 AM






Hi,

I have reached a stage in developing a site where I want to make use of the
Worldpay Callback feature.

I need the call back to add a record to a table that will store an order
number and a "y" or "n" depending on a successful / non-successful payment.

I can't get my head around and asp script that will do this.

Help very much appreciated.

Joe




Reply With Quote
  #2  
Old   
Julian Roberts
 
Posts: n/a

Default Re: Worldpay callback.asp page - 06-22-2004 , 11:06 AM






You could have code like

OrderID=Request("cartid")
CardValid=Request("transStatus")
AuthCode=Request("rawAuthCode")
Message=Request("RawAuthMessage")
Set MM_Cmd = Server.CreateObject("ADODB.Command")
MM_Cmd.ActiveConnection = MM_CharonCart_STRING
MM_Cmd.CommandText = "update orders set OrderstatusID=2, CardVaild='" &
CardValid & "',AuthCode='" & AuthCode & "',Message='" & Message & "' where
OrderID=" & cdbl(OrderID)
MM_Cmd.Execute
Set MM_Cmd = Nothing


--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004



Reply With Quote
  #3  
Old   
NGJ
 
Posts: n/a

Default Re: Worldpay callback.asp page - 06-22-2004 , 04:35 PM



Thanks Julian,

Any other samples I have found are alot more complex and hard to follow.

Joe

"Julian Roberts" <newsg (AT) charon (DOT) co.uk> wrote

Quote:
You could have code like

OrderID=Request("cartid")
CardValid=Request("transStatus")
AuthCode=Request("rawAuthCode")
Message=Request("RawAuthMessage")
Set MM_Cmd = Server.CreateObject("ADODB.Command")
MM_Cmd.ActiveConnection = MM_CharonCart_STRING
MM_Cmd.CommandText = "update orders set OrderstatusID=2, CardVaild='" &
CardValid & "',AuthCode='" & AuthCode & "',Message='" & Message & "' where
OrderID=" & cdbl(OrderID)
MM_Cmd.Execute
Set MM_Cmd = Nothing


--
Jules
http://www.charon.co.uk/charoncart
Charon Cart 3
Shopping Cart Extension for Dreamweaver MX/MX 2004





Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.