|
Home > Archive > IIS ASP > January 2006 > Question on ASP and worldpay callback
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Question on ASP and worldpay callback
|
|
| michdoh@yahoo.com 2006-01-24, 7:51 am |
| 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
| |
| diablo 2006-01-29, 9:29 pm |
| Xref: TK2MSFTNGP08.phx.gbl microsoft.public.inetserver.asp.general:301684
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
<michdoh@yahoo.com> wrote in message
news:1138094864.488441.249560@g49g2000cwa.googlegroups.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
>
| |
| michdoh@yahoo.com 2006-01-30, 8:42 am |
| Thanks Diablo
|
|
|
|
|