HTML variables syntax and examples for Donate Button.

JayDub
Contributor
Contributor

I cannot get any additional variables to be saved as part of a transaction from a Donation Button or Donation Link.

I am trying to pass some information into a donation transaction so it will show up on a PayPal Activity Report. 

 

There are several fields that seem available to use for this purpose as they show up on a detailed Activity Report   (such as "Campaign Name", "Item Details", "Custom Number" ,"Item ID", or "Subject").  It seems like there is a simple way to provide values into one of these fields would be using the "Add extra HTML button variables" option in the button creation tool.

However I get either errors in syntax that won't let me save them, or it will appear to save them but they are not there when I go to edit the button again.

I have seen some help postings that say there should be no code and I should just type in

item_name=membership or

item_name="membership"

and others that say the syntax should be more like this:

<input type="hidden" name="item_name" value="Membership">

However neither of those work. 

What am I doing wrong (and why are there no syntax examples to reference within any of the documentation)?

 

I see that perhaps I am confusing valid HTML variables (like item_name) with variables that show up on an Activity Report, such as Item ID.  But the bottom line is I want to put data into a transaction that will be visible on a report - I do not much care what the variable is named. 

 

I would like to be able to create a distinction between a donation that is made for Membership, Tribute, or an Event.  And ideally, have an additional level of granularity so each Event could have a unique ItemID or other value so that the many events can be distinguished from one another.

Any ideas on how to accomplish this would be greatly appreciated.

 

This question was reposted here, as I think it was not appropriate for the SOAP board: https://www.paypal-community.com/t5/NVP-SOAP-APIs/Help-with-HTML-button-variables-syntax/m-p/3164489

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.