Posts: 10
Registered: ‎07-09-2018

Authorize Hosted Lightbox Error Message: amount element invalid

Hello all,


I'm currently working on setting up the lightbox/IFrame implementation of Authorize Hosted in a web app, and I'm running into the following issue after submitting a payment -

Error Code: E00003

Error message: The 'AnetApi/xml/v1/schema/AnetApiSchema.xsd:amount' element is invalid - The value '' is invalid according to its datatype '' - The string '' is
not a valid Decimal value. 


I'm not sure where I'm going wrong, or even where to start with finding the root cause of this issue, as I'm passing in a decimal value into the getAnAcceptPaymentPage script. I appreciate any help, and thanks in advance.




Jonathan Rasmussen


Software Developer I

College of Southern Idaho


Trusted Contributor
Posts: 209
Registered: ‎11-05-2018

Re: Authorize Hosted Lightbox Error Message: amount element invalid

You are somehow passing a string with two quotation marks. So either you are passing amount as ‘’ or you are passing it as ‘30.00’ or whatever value you are using similarly enclosed in single quotes. In most languages I am aware of without strict type checking float/decimal values do not have to be enclosed in quotes.