Can I automatically fill in pages on the payment form by customizing a Donate button?

CedricCicada
Contributor
Contributor

My non-profit's membership chairperson is having problems because we need to differentiate between people who pay for membership and people who make random donations.  Although our membership form asks them to enter their name or E-mail address so that we can look for a payment from that name, a lot of people don't do it.  I'm wondering if it is possible to customize a Donate button so that the payment form's comment field is automatically filled in with "Membership payment" or some such phrase.

 

Thank you.

Login to Me Too
4 REPLIES 4

sharpiemarker
Esteemed Advisor
Esteemed Advisor

@CedricCicada 

 

With the button for the memberships, in the Item Name field, you can enter "[Your Organization's Name] Membership Payment" and I think there is an option to ask for donor's info but it is optional for the donor to include it or not.

 

On the other button for regular donations, in the Item Name Field, you can enter "[Your Organization's Name] Donation" and also elect to ask for the optional donor info in the button options.

 

If you want, you can also enter an Item Number like let's say your organization's name's initials is XYZ; add "D" for donations so the item number is XYZD and the memberships' Item Number is XYZMP, with "MP" standing for Membership Payment.


Kudos & Solved are greatly appreciated. 🙂
Login to Me Too

CedricCicada
Contributor
Contributor

We are using the following HTML code supplied by PayPal for the Donate button:

 

<!-- PayPal donate button start -->
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" width="20%">
<input name="cmd" value="_s-xclick" type="hidden" />
<input name="hosted_button_id" value="F3N7ZS887WERL" type="hidden" />
<input src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif"
name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="image" />
<img alt="" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" border="0" height="1" width="1" />
</form>

 

How would I change this code to set the Item Name and Item Number fields?

Login to Me Too

CedricCicada
Contributor
Contributor

Please provide the HTML code I would need to use to implement your solution.  My attempt did not work.  The Order Details section on the Transaction Details page had nothing in the item name column.  It said somebody paid for one of something, but not what that thing was.

Login to Me Too

sharpiemarker
Esteemed Advisor
Esteemed Advisor

@CedricCicada 

 

You would have to go back to your Saved buttons and edit the button in your PayPal account. Can't edit that code as is.

To find the Saved buttons list in your personal account, go to Manage Buttons.

To find the Saved buttons list in your business account, go to Tools > PayPal Buttons > Saved Buttons List (top right hand corner of page)

 

In the Html Variables box (Step 4), enter:

 

for the membership payment button:

item_name="XYZ - Membership Payment"

item_number="XYZMP"

 

for the donation button:

item_name="XYZ - Donation Payment"

item_number="XYZD"

 


Kudos & Solved are greatly appreciated. 🙂
Login to Me Too

Haven't Found your Answer?

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