CF8 + Paypal integration help

I think this is a simple task, but I haven't seen any examples of this on the web (or I haven't looked hard enough).

How do you send custom information with a Paypal button click? Let's assume I want to send an email address or userID or UUID with a payment for tracking. After they do all their processing at paypal's site, I want that tracking variable to be available on the receiving thankyou.cfm page hosted at my site.

Right now it's done via the logged in person's session ID. They have to be logged in, have to have a session scoped ID available and the thank you page will update the DB based on this criteria.

I'd like to change this from a session scoped variable to a coded variable sent from the get go.

Is this possible? Is it as simple as adding a hidden form field ?

Thanks in advance to all you paypal ninjas :)

Comments
Matt Gifford aka coldfumonkeh's Gravatar I haven't got the code to hand at the moment (am on mobile) but I've resolved this issue before by sending a UUID as a hidden form variable to the paypal checkout process, which was returned. I'll try and find my example to send you, but it is also outlined in the Paypal documentation as well.
# Posted By Matt Gifford aka coldfumonkeh | 6/5/10 2:36 PM
travis's Gravatar I got it. Let me take out the custom/personal stuff from my script. give me 5.
# Posted By travis | 6/5/10 4:46 PM
Travis (@headsplode)'s Gravatar Now I have to remember. I think PayPal is smart enough to receive custom form fields. The on# is the name of the field and the os# is the value

<input type="hidden" name="on0" value="custID">
<input type="hidden" name="os0" value = "<cfoutput>#qProfile.custID#</cfoutput>">
<input type="hidden" name="on1" value="email">
<input type="hidden" name="os1" value = "<cfoutput>#qProfile.eMailAddress#</cfoutput>">

Then on your return page you're actually looking for url.custID and url.eMailAddress.
# Posted By Travis (@headsplode) | 6/5/10 5:02 PM
Travis (@headsplode)'s Gravatar looks like there are a few other pass-through variables including a "custom" variable that isn't displayed to the customer.

https://www.paypal.com/en_US/ebook/subscriptions/i...
https://www.paypal.com/en_US/ebook/subscriptions/h...

I googled "paypal passthrough variables" to get the above links.
HTH
# Posted By Travis (@headsplode) | 6/5/10 5:19 PM
Admin's Gravatar Travis you are a godsend! thank you!
# Posted By Admin | 6/7/10 11:44 AM

Calendar

NAVIGATION

Recent Entries

Recent Comments

RSS

Search

Subscribe

Tags