question

arun avatar image
arun asked bryanvargas answered

Decimal in amount

I have clover payment merchant for payment purpose.

i am unable to make payments in decimal values, it accepts only whole numbers.

what is the way to fix to accept amount in decimal values ?

i am using Hosted payments

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

The amount payload is in cents; if you want to charge $.20 it will be "amount":20,

$10.00 = 1000

etc.

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