Question on ASP and worldpay callback

M

michdoh

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
 
D

diablo

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top