- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is not on the email from paypal nor on the transaction detail. I need that field to match the payment with the right account.
Thanks -Bradley
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, you can't add a line of code to a "hosted" item button after it has been created. If you try, your code will be ignored. That's the intent and design of "hosted" item button code which makes the code tamper proof. If you want to use the "custom" variable with "hosted" code, you must include the variable and value in Step 3 of the button creation process.
Regards,
skier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The "custom" variable is designed as a passthrouth variable. Passthrough variables are intended for your use. For example, you may have a requirement to update a backend database. The value can be returned in IPN/PDT functions. Note, the value will not appear in the email notification or the PayPal Screens however, the value will appear your Account Profile Transaction History details.
Regards,
skier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks, skier. Yes, down-the-line I intend to integrate with IPN but at the moment I'm doing it manually.
I have downloaded the transaction history and, unfortunately, I still don't see the field. I do see a field titled "Custom Number" but it is blank. So is "Custom Number" supposed to hold the "Custom" variable? (If so, I have other issues, apparently.)
Thanks, again -Bradley
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes, what ever value you have for the "custom" variable, you should see.
Are you using "hosted" item button code meaning you're using the online button creator to generate your item button code? If yes:,
Go to Step 3 and at the bottom you will see "Advanced Variables"
Note the text box near the bottom of the page. There you can insert extra variables.
For example, to insert the "custom" variable just enter: custom=123456ABCD
There's no HTML extras, just the name of the variable, an equal sign and the value.
If you're manually coding your item buttton code, then the line of code you need would look like this:
<input type="hidden" name="custom" value="123456ABCD">
Regards,
skier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Umm, I was doing a cross of both. Bad idea? I was using a hosted button but I was also adding a hidden input field between the form tags. If I enter the variable as you said on the button creation page, eg 'custom=123456ABCD', am I creating a constant or would '123456ABCD' be a placeholder? And, if so, how do I dynamically change the value per transaction?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unfortunately, you can't add a line of code to a "hosted" item button after it has been created. If you try, your code will be ignored. That's the intent and design of "hosted" item button code which makes the code tamper proof. If you want to use the "custom" variable with "hosted" code, you must include the variable and value in Step 3 of the button creation process.
Regards,
skier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Gotcha. In reading other posts it looked like PayPal had created the option of including a "custom" input tag in conjunction with a hosted button. In further reading, it looks as if this is still in production.
A combination of the two would make sense because some fields have a greater need for tamper-proofing than others. I would still like to protect some fields while leaving the custom to be generated at run-time. Oh well, I guess a non-hosted button with manual tamper-checking is how I will implement for now.
Thanks for your help, skier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No problem, if you need to dynamically change values in your item button code, you need to use clear text or non-hosted or non- encrypted item button code. Check out my site here for tips and examples of clear text item button code.
Regards,
skier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
skier,
I have a campaign website, and state law now requires us to request donator's employer and occupation,
so, how would I do this using the custom field (since there are two of them) to post these 2 fields to paypal, then for this information to show up in my account history details?
can I do a custom1 and custom2 variable?
JimW
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.