Hi Sri,
thanx for the info. I just found the paypaldev.org site. There's a paypal guy on the forum there, and a bit of discussion too.


Adam

On 01/24/2004 04:57 PM [EMAIL PROTECTED] wrote:
Hi Adam,

You can use the IPN feature in Paypal.

1) Go to merchant tools and click on the IPN technical
overview.You will get a link to activate the IPN from
there. There you have to specify a URL which accepts
post parameters.

2) Paypal posts the customer information (except credit
card), transaction status, transaction id and a
encrypted token.

3) You can have a Struts action mapping for that URL to
handle the data and persist it on your side.

4) Then send a HTTP Post to httsp://paypal.../webscr along with the encrypted token.

5) Paypal will reply back with a SINGLE word :
COMPLETED  or INVALID. (although txn was completed in
3, this is a check to prevent spoofing. If you get
INVALID, then it is a suspicious case)

6) You can do any processing for the customer only
after receiving the COMPLETED response.

Its quite easy actually. I am currently writing such a
web application for my book publisher and it is going
good so far.

The paypal technical overview is very informative.

Thanks,
Srikanth

=============================
Srikanth Shenoy
Author: Struts Survival Guide
ObjectSource Publications
http://www.objectsource.com
=============================

Adam Hardy wrote:

Sorry it's a bit OT but I know of no other forum where
I might find java developers doing e-commerce. googling
brings up only rubbish or purchasable solutions (could
be my search terms though...)

I'm trying to figure out a way of incorporating paypal
into my e-commerce site, but it is difficult to
automate, since paypal handles the payment transaction
on their own site and the only feedback returned is (1)
customer forwarded to either my own success-page or
cancel-page and (2) paypal email to me

Has anybody set up an e-commerce site with paypal that
handles this?

I'm thinking of using user sessions, transactions
tokens and so on to try to handle it.


Thanks Adam

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
struts 1.1 + tomcat 5.0.16 + java 1.4.2
Linux 2.4.20 Debian


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to