10 posts / 0 new
Last post
nikolayzahriamin5941
Error invalid_amount

Hi,
I'm getting invalid_amount error on decimal numbers like 49.95. The same code works fine for round numbers like 49 or even with 49.00.
I'm testing in sandbox. Here is my response:

Error: {messages: [{code: "invalid_amount", description: "The amount provided is invalid"}]}
amount: "49.95"
correlation_id: "228.1445605121992"
currency: "USD"
method: "credit_card"
transaction_status: "Not Processed"
transaction_type: "purchase"
validation_status: "failed"

Can someone please help me?


rohitrajagopal3538
Re: Error invalid_amount

Nikolay,

Amount is in cents. For example 1299 implies $12.99. 

amount 

(required)
string Processed Amount in cents. 

1299 = $12.99
currency_code 

(required)
string ISO 4217 currency span Ex: USD. Click herefor list of supported currencies.

 

Regards,

Payeezy team


ironplanetengin...
Re: Error invalid_amount

Rohit,

We also got the same error message when running charges against out developer sandbox using the Payeezy Direct API. We are trying to comprehend your response above. When you say amount is in cents, do you mean to imply that if I have to charge $1234.56 on a Visa credit card, I would send the charge amount in my TransactionRequest as 123456?

Thanks,
Vidhya @IronPlanet


rohitrajagopal3538
Re: Error invalid_amount

Vidhya - That is correct.


luckygarg12901
Re: Error invalid_amount

hello so it's mean if we want to charge $12.26 then we give amount 1226 but if we want to charge 1345 so what amount will go ?


christopherlord730
Re: Error invalid_amount

1345 will charge $13.45 to the customer


intersoftassoci...
Re: Error invalid_amount

how much is the amount allowed, can i do pay for only 1 penny?


christopherlord730
Re: Error invalid_amount

You can submit a $0 authorization but a purchase transaction must be at least 1 penny


bhavikapatel21675
Re: Error invalid_amount

If I want to pass 0.06 $ amount then how can i pass it and also give answer about how can i pass 1 digit value in that?
Waiting for your reply.


christopherlord730
Re: Error invalid_amount

The amount is passed in pennies (2 decimal implied). So to pass six cents you would send '6'. I don't understand what you're referring to regarding passing a 1 digit value.