Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

PHP

Paypal Payments

Hello, hope for some help, im using paypal service to make payments online, but i have a problem. In my system i have links of products where any user can buy, just by checking out in paypal button. But there are 2 types of links of that product.

There are like this one: www.domain.com/product.php?id=1234 and www.domain.com/product.php?id=1234&ref=1234

Basically when someone is checking out using the second link this means that this product was bought by the referal.

Im using a simple form in the checout of the product, what i want is to use a custom variable where i store the ref id, and than in the sucess page receive that ref id. Doest anybody nows how to pass a custom variable and than received it in the sucess page after payment?