I am integrating paypal gateway in my angularjs app. In that I am submitting form with various input field. In that form, I am setting up value of amount dynamically
For example: <input type="hidden" name="amount" value="{{paypal_data.reward_amount}}">
But paypal is not accepting form and displaying following error.
The link you have used to enter the PayPal system contains an incorrectly formatted item amount.
The value is setting to amount successfully. When I use input type= "text" instead of "hidden" then its displaying correct value in textbox but paypal is not accepting form. How to set value dynamically to input with another method so that the form will accept by paypal.
paypal_data.reward_amount
only has 2 places after the decimal – dtingng-model
? – David Votrubecform.submit()
. Because if you use angular, then it should work correctly. Thevalue="{{}}"
is kinda weird ... – David Votrubec