Reply
Contributor
Posts: 16
Registered: ‎07-09-2018
Accepted Solution

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 'http://www.w3.org/2001/XMLSchema:decimal' - 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.

 

Best,

 

Jonathan Rasmussen

ITIL v3

Software Developer I

College of Southern Idaho

jrasmussen@csi.edu

208-732-6846


Accepted Solutions
Highlighted
Solution
Accepted by topic author jrasmussen
‎03-06-2019 09:37 AM
All Star
Posts: 530
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.

View solution in original post


All Replies
Highlighted
Solution
Accepted by topic author jrasmussen
‎03-06-2019 09:37 AM
All Star
Posts: 530
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.