| View previous topic :: View next topic |
| Author |
Message |
Pierre Marie Guest
|
Posted: Mon Apr 25, 2005 1:54 pm Post subject: asp & intraweb form |
|
|
Hello,
i have a little pb:
I am trying top install a credit card payment system given by my bank.
I am using IW and i have to execute aso code on the server side, i do not
know i can do this.
For example there is one tiwedit i write the qt inside : '5'
On an iw btn click, i have to execute a call_request.asp but the
call_request.asp code must have the qt='5' modified in its asp code. Do you
see what i mean ?
I do not see how to do this.
Thanks
--
Courtoisement
Pierre-Marie PETIT
[email]pm (AT) nst (DOT) fr[/email]
03 20 06 63 94
|
|
| Back to top |
|
 |
Guillermo Ortega A. Guest
|
Posted: Tue Apr 26, 2005 6:17 pm Post subject: Re: asp & intraweb form |
|
|
Recently I added credit card processing to a site, but the bank only asked
to sent a POST (htps://bankaddress) with some values so in the event OnClick
of the IWButton I do someting like this (from memory not working code) using
Indy 9, DEL 7:
var
MyRequest: TIdHttp;
MySSL: TIdSSLIOHandlerSocketOpenSSL;
MyPost: TStringList;
lsResultado: String;
...
...
begin
..
..
MyPost.Add('Number='+CreditCard);
MyPost.Add('ClientID='+MyIDStore);
...
MyRequest.IOHandler := MySSL; // because of https:
MyRequest.HandleRedirects := True; // I don't know if
that is necessary
try
lsResultado := MyRequest.Post(BANK_URL, myPost);
// process lsResultado
except
On E: Exception do
// process error
end;
end;
In lsResultado I have the response from the bank and I parse that in order
to inform if the credit card was charged or there were an error.
Guillermo.
|
|
| Back to top |
|
 |
Chad Z. Hower aka Kudzu Guest
|
Posted: Wed Apr 27, 2005 12:24 pm Post subject: Re: asp & intraweb form |
|
|
"Pierre Marie" <pm (AT) nst (DOT) fr> wrote in
news:426cf67e$1 (AT) newsgroups (DOT) borland.com:
| Quote: | On an iw btn click, i have to execute a call_request.asp but the
call_request.asp code must have the qt='5' modified in its asp code. Do
you see what i mean ?
|
You can use Indy as Guillermo said if you want to catch the output, or you
can post directly to it with a form. Our site where you purchase IW does
this. Its IntraWeb calling a JSP.
--
Chad Z. Hower
Atozed Software Technical Support
Atozed staff provides basic assistance with peer support
on these forums. For more information see:
http://www.atozed.com/intraweb/support/peer.iwp
|
|
| Back to top |
|
 |
|