Form payment option empty for user to choose before submit

I have api i am integrating for payment form into website. Will i be able to create the form so that the user can add the amount to pay?
thank kindly

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Take Payments
Enable Google Pay
Payment API: Process Online and In-Person Payments

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Yes, you can create a payment form where users can input the amount they want to pay. You can use the Square Web Payments SDK to create a secure, customizable payment form on your website. When the form is submitted, the SDK generates a secure payment token which you can then use with the Square Payments API to process the payment. The amount to be charged is specified when you make a CreatePayment request to the Payments API. You can set this amount based on the user’s input from the payment form.

This answer was reviewed by @Bryan-Square.