Hi
the callback script is simply an ASP page that does not have any html.
basically the callback from world pay is used to:
get data from the posted variables
save to a database
send an email or two.
the url looks the same as any other url - but dont make it something that
other visitors to your site can go to.
the first thing the page should do is ensure that it is being called by
worldpay - i.e. do a transaction=yes check
a page that makes a call to a database - does not show anything on the page.
e.g.
' has transaction occured?
if Request.Form("transStatus") = "Y" then ' from world pay
' save to database
dim rs, c, orderid, sql
buyerid = Request.Form("cartid")
wp_id = Request.Form("transId")
c = orderdb
set rs = server.CreateObject("ADODB.Recordset")
sql = "insert into payment_t (TransID, BuyerID, Email, AmountPaid, DT)
values ("
sql = sql & "'" & wp_id & "','" & buyerid & "','" & buyer_email & "'," &
Request.Form("amount")
sql = sql & ",#" & mydate(now()) & "#)"
rs.Open sql, c
set rs = nothing
hth
<mi*****@yahoo.com> wrote in message
news:11**********************@g49g2000cwa.googlegr oups.com...
HI all
I wondered if anyone can give me some advice on wow to deal with the
call-back process generated by Worldpay.
My understanding is that after a transaction Worldpay will send the
result's to a specified URL. All of the scripts I've looked at parse
the query string and display the data onto a web-page, which obviously
renders a page, as there is no one to read this and it does not go to
the client I'm not sure what use these scripts are.
I have a couple of general ASP questions if anyone has a solution
How do you make a call to an asp page that updates a database but does
not render a page? I'm probably being dumb but what does the url look
like? I.E can I make a call direclty to a web-service to update my DB.
I'm running dot.net framework 1.1, MCMS 2002 and using visual studion
202
Any thoughts are greatly appreciated
Mikey