468,549 Members | 2,199 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,549 developers. It's quick & easy.

Question on ASP and worldpay callback

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

Jan 24 '06 #1
2 2805
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

Jan 27 '06 #2
Thanks Diablo

Jan 30 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Rudi Ahlers | last post: by
reply views Thread by Rudi Ahlers | last post: by
reply views Thread by Andy Everett via .NET 247 | last post: by
reply views Thread by Anthony | last post: by
2 posts views Thread by Richard Brooks | last post: by
7 posts views Thread by heltena | last post: by
1 post views Thread by sajit | last post: by
reply views Thread by NPC403 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.