RE: Buy Now Paypal integration workflow

2006-10-03 Thread Adkins, Randy
There are some utilities out there to help you with the integration.
Using the Buy Now, you would send over a success_url or failed_url (I
think that is correct)
which would be a page within your website. Thus, you can take the
appropriate actions as needed.

-Original Message-
From: Rick King [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 4:39 PM
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:255272
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Buy Now Paypal integration workflow

2006-10-03 Thread Ian Skinner
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?


Yes, the session will live as long as the session is timed to live.  Are you 
using Paypals IPN (Instant Payment Notification) feature.  It will send you a 
data packet full of payment data when a transaction is completed.


--
Ian Skinner
Web Programmer
BloodSource
www.BloodSource.org
Sacramento, CA

-
| 1 |   |
-  Binary Soduko
|   |   |
-
 
C code. C code run. Run code run. Please!
- Cynthia Dunning

Confidentiality Notice:  This message including any
attachments is for the sole use of the intended
recipient(s) and may contain confidential and privileged
information. Any unauthorized review, use, disclosure or
distribution is prohibited. If you are not the
intended recipient, please contact the sender and
delete any copies of this message. 




~|
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:255273
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Buy Now Paypal integration workflow

2006-10-03 Thread Snake
You need you use the IPN method, so that you have a callback that happens in
the background.

Here are some useful links

https://www.paypal.com/IntegrationCenter/ic_documentation.html


http://paypaltech.com/Stephen/test/ipntest3.htm
 

-
Snake

-Original Message-
From: Rick King [mailto:[EMAIL PROTECTED] 
Sent: 03 October 2006 21:39
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:255274
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4


RE: Buy Now Paypal integration workflow

2006-10-03 Thread Martyn Bowis
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


RE: Buy Now Paypal integration workflow

2006-10-03 Thread Rick Faircloth
Hi, Rick...

Sorry I don't have an answer for you, because I have no experience
with ecommerce...however, I have thought of creating a virtual Mall
for our area and allowing local merchants to sell their wares on the
site.

Is that what you're doing...or something similar?

Rick

-Original Message-
From: Rick King [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 03, 2006 4:39 PM
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:255293
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Buy Now Paypal integration workflow

2006-10-03 Thread Rick King
Thanks guys...I didn't know about the IPN method. I'll look into it tonight.

Rick

~|
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:255297
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Buy Now Paypal integration workflow

2006-10-03 Thread Rick King
So I tried implementing IPN, made all the preference changes on Payapl, read up 
on the lastest IPN tutorial over at easycfm by Mike Daugherty 
(http://tutorial468.easycfm.com/), and am using the code below. 

Unfortunately, I'm only receiving the contents of the cfelse statement which 
means it's not returning SUCCESS. I'm sure the authToken is correct.

Has anyone else tried implementing this code? The whole process works great up 
until it returns to my ipn.cfm page.

Rick


-IPN.CFM---
cfparam  name=url.tx default=

cfset authToken=AOxgkNc95zzHVGCkClZyKUJ10sh8Eh55bkf6epJkcE5sdXoLHhPLC4VrfnC
cfset txToken = url.tx
cfset query=cmd=_notify-synchtx=  txToken  at=  authToken

CFHTTP url=https://www.paypal.com/cgi-bin/webscr?#query#;
   method=GET
   resolveurl=false
/CFHTTP

cfif left(cfhttp.FileContent,7) is SUCCESS
cfloop list=#cfhttp.FileContent#
 index=curLine
 delimiters=#chr(10)#
cfif listGetAt(curLine,1,=) is first_name
cfset firstName=listGetAt(curLine,2,=)
/cfif
cfif listGetAt(curLine,1,=) is last_name
cfset lastName=listGetAt(curLine,2,=)
/cfif
cfif listGetAt(curLine,1,=) is item_name
cfset itemName=listGetAt(curLine,2,=)
/cfif
cfif listGetAt(curLine,1,=) is mc_gross
cfset mcGross=listGetAt(curLine,2,=)
/cfif
cfif listGetAt(curLine,1,=) is mc_currency
cfset mcCurrency=listGetAt(curLine,2,=)
/cfif
/cfloop

cfoutput
ph3Your order has been successfully received./h3/p
bDetails/bbr
liName: #firstName# #lastName#/li
liDescription: #itemName#/li
liAmount: #mcCurrency# #mcGross#/li
hr
/cfoutput

cfelse
ERROR: Check to make sure the authToken value you set is EXACTLY what 
PayPal gave you in Step 2
/cfif





~|
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:255311
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4