How do I code in $20 for 5 tickets?

Beargio
New Community Member

Hello to anyone reading this. I am managing a website for a non-profit and they are selling tickets. I am able to code in 1 ticket for $5 dollars just fine but I do not know how to do $20 for 5 tickets.... it's frustrating that this isn't on Paypals website to begin with. I would appreciate help-code below for reference.

 

<form action="https://www.paypal.com/cgi-bin/webscr" method="post"> <!-- Identify your business so that you can collect the payments. --> <input type="hidden" name="business" value="nonprofithere"> <!-- Specify a Buy Now button. --> <input type="hidden" name="cmd" value="_xclick"> <!-- Specify details about the item that buyers will purchase. -->

<input type="hidden" name="item_name" value="Tickets"> <input type="hidden" name="amount" value="5.00"> <input type="hidden" name="currency_code" value="USD"> <!-- Provide a drop-down menu option field. -->

<input type="hidden" name="on0" value="Type">Tickets <br /> <select name="os0"> <option value="Select Type">-- Select Type --</option> <option value="1 Ticket">1 Ticket</option> <option value="5 Tickets">5 Tickets</option> </select> <br />


<!-- Display the payment button. --> <input type="image" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="Donate">
<img alt="" width="1" height="1" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" >

</form>

 

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @Beargio,

 

Thank you for contacting PayPal community.

 

Our sincere apologies for the inconvenience caused.

 

Yes, you should be able to achieve this by adding the "option" value as below. 

 

<select name="os0">

<option value="1 ticket">1 ticket $5.00 USD</option>

<option value="5 tickets">5 tickets $20.00 USD</option>

</select> 

 

https://developer.paypal.com/api/nvp-soap/paypal-payments-standard/integration-guide/html-example-bu...

 

You can also edit your hosted button code via your PayPal account. 

 

Login PayPal.com >> click on "settings icon" >> go to "Account settings" >> Website payments >> PayPal buttons >> click "View your saved buttons" >> select your button >> click on "action" drop down >> "edit button".
(Or)

Login PayPal.com >> go to direct link "https://www.paypal.com/buttons/" >> follow the above steps

 

Screenshot 2022-11-16 at 6.05.40 PM.png

Thank you so much for your patience and understanding.

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

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.