How to add a custom input field on subscription buttons
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I would like to add 2 custom input fields for my subscription buttons. The first field(organization name) is required and the 2nd (client code) is optional. I have found several similar solutions, but not exactly what I'm looking for because I need a solution for both monthly and yearly subscriptions buttons.
Also, I'm not sure how to replace the buy not button with a regular html submit button like this:
<button type="button" class="btn btn-primary">Pay Now</button>
any ideas?
Here is what I have so far...
<!-- Start of Buy Now Form -->
<form target="_self" action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_xclick">
<!-- Replace "business" value with your PayPal Email Address or Account ID -->
<input type="hidden" name="business" value="your email address">
<input type="hidden" name="item_name" value="Widget Statue">
<input type="hidden" name="item_number" value="WS-1001">
<input type="hidden" name="amount" value="100.00">
<input type="hidden" name="lc" value="US">
<input type="hidden" name="currency_code" value="USD">
<input type="hidden" name="no_shipping" value="2">
<!-- Replace value with the web page you want the customer to return to after a successful transaction -->
<input type="hidden" name="return" value="http://www.yourwebsite.com/ThankYou.html">
<!-- Replace value with the web page you want the customer to return to after item cancellation -->
<input type="hidden" name="cancel_return" value="http://www.yourwebsite.com/Cancel.html">
<input type="hidden" name="button_subtype" value="products">
<input type="hidden" name="no_note" value="0">
<input type="hidden" name="cn" value="Add special instructions to the seller:">
<input type="hidden" name="bn" value="PP-BuyNowBF:btn_buynow_LG.gif:NonHosted">
<!-- -->
Name Plate Engraving Information:
<br><br>
Organization Name:
<input type="hidden" name="on0" value="Organization Name">
<input type="text" name="os0" size="20">
<br><br>
Customer Code (optional):
<input type="hidden" name="on1" value="Customer Code">
<input type="text" name="os1" size="20">
<br><br>
<!-- -->
<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1">
</form>
<!-- End of Buy Now Form -->
- Labels:
-
PayPal Buttons
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Is there an automatic invoicing after subscription plan being payed by customer e.g. each month? in Business Tools Archives
- PayPal subscriptions have stopped working. Error on PayPal's site in Merchant Products and Services Archives
- Once a customer has paid/setup a subscription are they returned to the product page? in Merchant Products and Services Archives
- How do I receive customer address when using button generator? in Merchant Products and Services Archives
- Need a way to pass the "PayPal fee" to the customer or add a "fee" calculator button to the invoice in Business Tools Archives