Hide description and quantity fields in checkout page

cerniauskas
New Community Member

Hello,

I am trying to integrate paypal payments into my cars` renting website. Everything works fine, but when click 'Book it now', I see description and quantity fields in the paypal payment form. Is it possible to hide these fields? https://gyazo.com/590bb4ccea62c6835ff630657d0def80

I want to show only total price.

My payment form:

<form id="order_form" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<
input type="hidden" name="business" value="testbs863433003@gmail.com">
<input type="hidden" name="cmd" value="_xclick">
<input type='hidden' name='cancel_return' value='{{ route('home') }}'>
<input type='hidden' name='return' value='{{ route('cars.paypalCallback') }}'>
<input type="hidden" name="amount" value="99">
<input type="hidden" name="currency_code" value="EUR">
<!-- order id -->

<input type="hidden" name="custom" value="2">
<button id="order-button" type="submit" class="wheel-btn style-2">Book it now</button>
</form>

 

Login to Me Too
2 REPLIES 2

MTS_Andre
Moderator
Moderator

Hi, if you don't pass the item_name (description) from your side, as in our documentation, then buyers enter their own name during checkout. The variable is optional from your side but is required in the flow so either you pass it (and it will not show the screenshot you posted) or the buyer will be shown with the screenshot you sent so that can provide it.

Login to Me Too

asie
Contributor
Contributor

How do I pass the item_name option for optional values? Can you please share the code?

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.