Is there a way to dynamically-populate a product ID into the no-code button?

pdanese
New Community Member

In case the title is not clear ...

 

I'd like a very simple payment button (preferably the no-code option), but I'd like to dynamically generate a product-id that gets sent to PayPal when the customer makes a purchase. Is that possible?

 

I used to have code that allowed me to do this, but I'd like to get a little more modern than what is below:

 

<form action='https://www.paypal.com/cgi-bin/webscr' method='post' target='_top'>
<input name='cmd' type='hidden' value='_xclick'>
<input name='item_number' type='hidden' value='******PRODUCT_ID*******'>
<input name='amount' type='hidden' value='100000000000'>
<input name='business' type='hidden' value='abcdef'>
<input name='lc' type='hidden' value='US'>
<input name='item_name' type='hidden' value='blah blah'>
<input name='button_subtype' type='hidden' value='services'>
<input name='no_note' type='hidden' value='0'>
<input name='cn' type='hidden' value='Add special instructions to the seller:'>
<input name='no_shipping' type='hidden' value='2'>
<input name='currency_code' type='hidden' value='USD'>
<input name='bn' type='hidden' value='PP-BuyNowBF:btn_buynowCC_LG.gif:NonHosted'>
<input alt='PayPal - The safer, easier way to pay online!' border='0' name='submit'
src='https://www.paypalobjects.com/en_US/i/btn/btn_buynowCC_LG.gif' type='image'>
<img alt='' border='0' height='1' src='https://www.paypalobjects.com/en_US/i/scr/pixel.gif' width='1'>
</form>

 

Thanks for any suggestions.

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.