Skip to main content
Cookies help us customize the PayPal Community for you, and some are necessary to make our site work. By browsing this website, you consent to the use of cookies. Learn more
Accept
Reject

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
since ‎Mar-07-2019
Country: United States
Type: Business
Cheslia
Cheslia Contributor
Contributor
1
Post
0
Kudos
0
Solutions
Your PayPal Anniversary
The Return
Active
View all
Latest Contributions by Cheslia
  • Topics Cheslia has Participated In
  • Latest Contributions by Cheslia

passing customer input invoice and amount to paypa...

by Cheslia Contributor in PayPal Payments Standard
‎Mar-07-2019 09:31 AM
‎Mar-07-2019 09:31 AM
I would like to create an HTML page that I can direct customers to for payment of an invoice that has already been supplied to them by me outside of PayPal.  I would like this HTML page to accept input of the invoice number and amount from the customer and then click on the paypal button.  The input invoice number and amount should then be passed into the paypal.Buttons() as part of the createOrder() before calling the onApprove().  If I hardcode the amount as in the example for the RestAPI, I can get it to work.  But the minute I add a form to accept values from the customer, the paypal.Buttons() no longer render.  The standard buttons inside of the Business setup ask for item description and quantity and information I don't need to display to the customer and thus why I started down the customer HTML page, but I'm open to whatever will work so I can put this button or HTML on my web site, it can prompt the customer for the two variables, and then pass to the paypal engine to process.  If anyone has done this or can help with examples, thank you. ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2023 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros