PayPal IPN custom field

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

PayPal IPN custom field

Post by s.dot »

Hey, I've got my IPN scripting all ready to go. Tested without a custom field in there. I need to pass a username custom field to update the database accordingly. How would I go about setting it up in the form? Would it be as easy as..

Code: Select all

<input type="hidden" name="username" value="scottayy">
If so, how does paypal post it back to my IPN script?

In $_POST['username'] ?

I'm hoping someone has dealt with this before. I've read the documentation but they're using fields like on0 and os0 for the custom fields, and I'm not sure how that posts to my IPN script.

I'd use the sandbox, but for the past few days it's just unaccessable to me. (slowwww loading times)
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

Re: PayPal IPN custom field

Post by Inkyskin »

I'm not sure about those os1, on1 fields, but I think you can have a field called "custom" which will be returned as "custom" to the IPN.
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Re: PayPal IPN custom field

Post by s.dot »

thank you, that worked perfectly
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply