troubleshooting Question

How do I pass the amount and description to a PayPal Buy Now button?

Avatar of mike99c
mike99c asked on
1 Comment1 Solution52 ViewsLast Modified:
I have generated a PayPal Buy Now button which leads to a payment page in which the user needs to enter the description and amount. However I would like to pass the amount and description directly to the button so the user does not have to add anything.

Below is the button code which I generated from PayPal. I added the currency_code and amount hidden fields but this is not passed through. I also need to pass the description.

Do I need to generate the button again? If so please advise on the selections.

		<form action="" method="post" target="_top"[embed=file 1448622]>
			<input type="hidden" name="cmd" value="_s-xclick">
			<input type="hidden" name="hosted_button_id" value="XXXNRYWVPXXX">
			<input type="hidden" name="currency_code" value="GBP">
			<input type="hidden" name="amount" value="22.99">
			<input type="image" src="" border="0" name="submit" alt="PayPal – The safer, easier way to pay online!">
			<img alt="" border="0" src="" width="1" height="1">

Open in new window


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 1 Comment.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 1 Comment.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros