I want to add a buy now button to my website. I already have a cart system and I need to send all the items to checkout with Paypal buy now button. A few years back I remember using the buy button with a form and I could set multiple items by specifying multiple hidden inputs like:
<input type="hidden" name="item_name_1" value="item name 1">
<input type="hidden" name="item_name_2" value="item name 2">
...
<input type="hidden" name="item_name_n" value="item name n">
Now with the new buy button JS API I can't seem to do that anymore. Am I missing something here? How can I add a buy button for multiple items?