Paypal Buy Now button with variable/dynamic price

Viewed 11041

This is not a duplicate of this post.

I quote from the linked post:

As of June 29, 2017 I see this not working. Paypal has again changed its rules, and I don't think it any longer accepts hidden HTML fields in the form submission: they must be set in the button editor at Paypal.

Paypal documentation is a mess. Half of the links are broken and the other half of the links point to the documentation index.

Does any brain out there know how to achieve a Paypal Payment Button where I can set the price dynamically?

2 Answers
<form name="_xclick"  method="post" action= "https://www.paypal.com/cgi-bin/webscr">
  <input type="hidden" name="cmd" value="_xclick">
  <input type="hidden" name="business" value="xxx@jjdj.com">
  <input type="hidden" name="item_name" value="XXXX">
  <input type="hidden" name="notify_url" value="http://XXXXXXX.com/ipn.php" />
  <input type="hidden" id="buybuttonid" name="custom" value="XXXXX" />
  <input type="hidden" name="amount" value="amount that you want to send">
  <input type="submit" value="Buy Now">
</form>

Please use this button and don't pass the item number and quantity then it will not set amount dynamically.

Just create simple buy now button and make price/amount value blank at time of creation of button

Related