passing customer input invoice and amount to paypal.Buttons in html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
- Charge a customer for the remaining balance after a purchase has been made? in REST APIs
- Payment Link Payment Button Custom Payments in PayPal Payments Standard
- Disputes Webhook does not works on Sandbox (23/04/24) in Sandbox Environment
- Redirecting to Paypal payments from our ERP software throws error , Need assistance for account in PayPal Payments Standard
- Get all available scopes in REST APIs