BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

asp & intraweb form

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb)
View previous topic :: View next topic  
Author Message
Pierre Marie
Guest





PostPosted: Mon Apr 25, 2005 1:54 pm    Post subject: asp & intraweb form Reply with quote



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





PostPosted: Tue Apr 26, 2005 6:17 pm    Post subject: Re: asp & intraweb form Reply with quote



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





PostPosted: Wed Apr 27, 2005 12:24 pm    Post subject: Re: asp & intraweb form Reply with quote



"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
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Thirdparty Tools (IntraWeb) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.