Hi Rick,

You should use the IPN (Instant Payment Notification) feature of PayPal.

There is example ColdFusion code on the PayPal site for processing the IPN
Post data that is returned to the page that you specify as the return page
for the IPN.

Essentially, the workflow could be:

1. User logs in
2. Create product and in database and set status to pending
3. Upload images and associate with product record
4. Click Buy Now Button and go to PayPal site (Buy Now Button has various
properties you can set, some of which can be retrieved from the IPN Post
data)
5. Have the IPN take the user back to thankyou.cfm
6. Read the IPN Post data inside thankyou.cfm
7. Update your product record status to completed

Cheers,
Martyn
 

-----Original Message-----
From: Rick King [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 04, 2006 9:39 AM
To: CF-Talk
Subject: Buy Now Paypal integration workflow

Anyone ever have this issue when integrating a Buy Now button from Paypal?

I have a site where a user posts a listing for an item, say a shirt. They
are also allowed to upload 3 images for that item. I'm charge a listing fee
that equals a percentage of the asking price of that item (say 5%). 

Once the user fills out the details, and uploads the images, they go to the
review page. If they approve it, they are sent to Paypal, where thay pay the
listing fee, then are returned to my site.

However, how can I make sure that they've completed the Paypal transaction,
since their item has already been posted? I'm trying to figure out a way
that their item won't be posted until after they've completed the Paypal
transaction. Would session variables still work after they've left my site,
gone to Paypal, and come back?

Thanks
R



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:255275
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to