-1

I am trying to make a recurring payment button but I want to be able to pass to it the total amount to pay and the amount of payments

if i create a button in paypal then i have to create a button for every option - is there anyway to pass in the html the amount and the number of payments

1 Answers1

0

When creating your button makes sure to disable the "save at PayPal" option which turns it into a hosted button. This will make all of the button details available in the HTML code.

At that point you could then dynamically set the values of the HTML form parameters.

Keep in mind that doing this is less secure because somebody could view source, copy your button code, adjust the values to whatever they want, and then check out that way.

The best way to do this would be using the Express Checkout API, but that will require more coding knowledge.

Drew Angell
  • 25,968
  • 5
  • 32
  • 51