Re: Merchat account
Re: Merchat account
- Subject: Re: Merchat account
- From: Kieran Kelleher <email@hidden>
- Date: Thu, 29 Sep 2005 11:16:59 -0400
Many merchant accounts are based on a HTTPS POST and RESPONSE
mechanism. Some have pre-built java libs to make your life easy, some
don't. Based on pricing, you may need to use a certain merchant that
provides the typical mechanism.
For the common situation of HTTPS POST and RESPONSE, your app would get
user values, then use a WOLongResponse or ERXLongResponse (since
processing can take anything from 5 secs to 2 mins.... often 10 secs,
but you cannot rely on that) to send a HTTPS POST of key-value pairs to
the merchant URL. Then you app waits for the response, reads it (often
it itself is key-value pairs too), analyzes the result and takes
appropriate action.
Along with this you get into multi-threading. Your using Sun's
HTTPSUrlConnection is not the best since it complies with a max 2
shared connection limit from some internet standard (which I forget the
reference number right now) to the same remote host which means high
traffic can get stalled. Hence you may have to (or should) use Jakarta
HTTPClient library to have your server open many parallel connections
if required to the merchant URL.
Just remember, WebObjects is just java frameworks, so whatever you can
integrate with java will work with WebObjects. A good idea may be to
wrap the responsibility in a custom class that you use in your
WebObjects app. That custom class may then depend on a Jakarta lib or
whatever in your class path.
From a WO perspective, you need to manage the long response so as not
to hang you app (broken pipe,etc.)
Some info on Jakarta HttpClient
http://homepage.mac.com/kelleherk/iblog/C149402102/E773353034/index.html
-Kieran
________________________________________________________________
Blog: http://webobjects.webhop.org/
On Sep 29, 2005, at 1:35 AM, .::welemski::. wrote:
Hi,
I am a newbie about merchant account stuff.
Can anyone give me an advice about what's the best merchat account for
WebObjects?
--
-- -- -- -- -- -- -- -- -- -- --
welemski
-- -- -- -- -- -- -- -- -- -- --
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden