How to show item name in paypal checkout pages by html buttons

arifsami3
New Community Member

In my code i'm sending item_name to paypalCHECKOUT page and receive that name after successful return to my website but i want to show product detail on paypal checkout page like item_name.

 

<form action='https://www.sandbox.paypal.com/cgi-bin/webscr' method='post'>

<!-- Identify your business so that you can collect the payments. -->
<input type='hidden' name='business' value='removed'>

<!-- 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=". $model->name . ">
<input type='hidden' name='item_number' value=". $model->id . ">
<input type='hidden' name='amount' value=". $model->price . ">
<input type='hidden' name='currency_code' value='USD'>

<!-- Specify URLs
<input type='hidden' name='cancel_return' value='localhost/payment/test'>
<input type='hidden' name='return' value='localhost/payment/success'>
-->
<!-- Display the payment button. -->
<input type='image' name='submit' border='0'
src='https://www.paypalobjects.com/en_US/i/btn/btn_buynow_LG.gif' alt='PayPal - The safer, easier way to pay online'>
<img alt='' border='0' width='1' height='1' src='https://www.paypalobjects.com/en_US/i/scr/pixel.gif' >

</form>

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

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