Adding customized PayPal buttons to site
-
I have created several PayPal buttons with customized options such as dropdown menus and text fields for users to input information. However the button code that I get from PayPal doesn’t work when I drop it into a Custom HTML block on a page. I am able to use a very simple PayPal button but it’s important that I can customize the button with user options. How do I accomplish this?
-
Hi –
It’s hard to know with out looking at the button and code directly. Which post or page did you try adding that block on to? Please share the site URL as well. Thanks.
-
The site URL is
https://mtbraceclub.wordpress.com
though I haven’t published the site yet as I’m testing to see whether WordPress can work for my group’s needs.I have been testing PayPal buttons on this page:
https://mtbraceclub.wordpress.com/test/
where I am able to put the simple URL-based Paypal buttons on the page. But I need to use more complex buttons that include text inputs and dropdown menus, of the kind you can see at my existing site:
http://mtbraceclub.com/duesThe code for those buttons includes a form tag, which gets stripped out when I add it to my WordPress page (whether using the code editor or the visual editor). Here is the code for probably the most complex PayPal button I need to use:
<!–
<form action=”https://www.paypal.com/cgi-bin/webscr” method=”post” target=”_top”>
<input type=”hidden” name=”cmd” value=”_s-xclick”>
<input type=”hidden” name=”hosted_button_id” value=”UMGR3XZ7NABP4″>
<table>
<tr><td><input type=”hidden” name=”on0″ value=”Month”>Month</td></tr><tr><td><select name=”os0″>
<option value=”March 2020″>March 2020 </option>
<option value=”April 2020″>April 2020 </option>
<option value=”May 2020″>May 2020 </option>
<option value=”June 2020″>June 2020 </option>
<option value=”July 2020″>July 2020 </option>
<option value=”August 2020″>August 2020 </option>
<option value=”September 2020″>September 2020 </option>
<option value=”October 2020″>October 2020 </option>
<option value=”November 2020″>November 2020 </option>
<option value=”December 2020″>December 2020 </option>
</select> </td></tr>
<tr><td><input type=”hidden” name=”on1″ value=”Pilot name and USHPA#”>Pilot name and USHPA#</td></tr><tr><td><input type=”text” name=”os1″ maxlength=”200″></td></tr>
</table>
<input type=”image” src=”https://www.paypalobjects.com/en_US/i/btn/btn_paynowCC_LG.gif” border=”0″ name=”submit” alt=”PayPal – The safer, easier way to pay online!”>

</form>
–>Hope that helps with the debugging. I am not opposed to upgrading to a premium or a business plan if that will give me the functionality I need. Or, if there is an option to host a static page alongside my WordPress content so that I can simply host my paypal buttons on the static page, I’m happy to do that as well.
-Zoe
-
Ah yes, the only PayPal button we support is the one detailed at https://wordpress.com/support/paypal/view-all/
Alternatively, if you’re on a paid plan, we have our own built-in option for recurring payments: https://wordpress.com/support/recurring-payments-button/
We also have our own option for single payments, but that requires a paid Premium plan or higher: https://wordpress.com/support/wordpress-editor/blocks/simple-payments-block/
-
Does your plan include options for user input such as text fields and dropdown menus? If all I can do with your plan is the simple payment without user inputs then it will not solve the problem.
Also I am perfectly happy to put my Paypal buttons into a static page that lives alongside my WordPress content if that is an option with any of your hosting plans.
Or if there is a plugin that can support the complex Paypal button with user input then I am again happy to do that with whatever upgrade is required. But I need to know that it’s going to work before I spend $$ on it. Thanks!
-
The basic PayPal Buy Now button, without any form elements, or the Simple Payments feature that staff-blorbo linked to above are the only two options available on the Free and Personal, and Premium Plans respectively.
Using a button with form elements, or a PayPal plugin, is possible on our Business or eCommerce plans.
-
OK thank you that is good to know. I am fine with having the Business plan if that will suit my needs.
But, when I read the spec for the WP PayPal Plugin-In (https://wphowto.net/wordpress-paypal-plugin-732) it does not mention using form-based buttons and the options available for buttons created with that plugin do not accommodate my need. (I don’t sell Tshirts on my site but if I make an analogy between Tshirts and what I do sell on my site, I need a button that would let the buyer select both a size for the tshirt via a dropdown menu, and specify some custom text to be written on the tshirt via a text field.)
Can you point me to some documentation that discusses how to use a PayPal button with form elements on the WP site? Thanks!
-
Hi, if you have a Business Plan, you’d have the option to add a form tag, so you would’t necessarily need an outside plugin for that, unless that made things easier for you.
If you need several products with different options, though, having an actual shopping cart rather than a series of PayPal forms may make more sense to you, too. Especially if site visitors might want to purchase multiple items from you.
-
Thank you! Good to know I can use form tags in the Business Plan site.
At this point I don’t need a shopping cart since site visitors are only purchasing one item at a time. But, there are many potential variations that I need to provide to the visitor (again with the T-shirt analogy, the visitor to my site might want a purple T-shirt in size XL with “I love you” printed on it in glitter paint, but they are never buying more than one T-shirt at a time).
-
You’ll be able to do that through the business plan by installing the WooCommerce plugin as your online store plugin.
- The topic ‘Adding customized PayPal buttons to site’ is closed to new replies.