Is there a way to dynamically-populate a product ID into the no-code button?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- No way to contact company and I want a refund! Please help. in PayPal Reporting
- "System error. Please try again later" when connecting to paypal sandbox account with my android app in Sandbox Environment
- Things don’t appear to be working at the moment in PayPal Payments Standard
- Something went wrong. Contact the merchant for help. in PayPal Payments Standard
- Payout function application on Production? in PayPal Payments Standard