question

arthur avatar image
arthur asked bryanvargas answered

Payments not reading decimals

I am trying to complete a credit card payment for an item that has decimals, for example $24.99.

The clover pay screen is only reading the transaction as $24.00, and charging partially.

I even use cents to pass in the amount, in this case 2499 cents.

Not sure what the problem is, or why the payment only reads it as a whole number.

Also, I am using the Clover android sdk PaymentRequestIntentBuilder method.

Payments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

·
bryanvargas avatar image
bryanvargas answered

Have you tried changing the number to a Double?

10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community