Open fjqtp opened 5 years ago
Hi,
Thanks for sharing this, so as you are doing explicit typecast this is not working. We will look into this why the SDK is treating it as float value. in 2.0.0 there has been changes to SDK serialization which might be causing this issue, will keep you posted.
Meanwhile, can you please try to store in a temp variable after typecast and then send it ? what happens in that case ?
We are getting the same A valid amount is required.
error message, however, we are using v1.9.9. I also opened up an issue #366. Are these issues related?
I'm also getting this error. it's really weird issue
i use
so I have to return my amount as a string to get it works.
Hello,
I'm using this lib version 2.0.0. When I set amount of transaction as float (as referred here: https://github.com/AuthorizeNet/sdk-php/blob/master/lib/net/authorize/api/contract/v1/TransactionRequestType.php#L231) $transactionRequestType->setAmount( (float)$this->amount );
I receive error from authnet (sorry for some reason not formatted even with code markdown)
At the same time if trying to send the same transaction with amount formatted as string, that works:
Can you guys please comment on this? I don't think it makes sense to format float as string. Float values worked for us in 1.9.*.