How to handle Decimal Digits
Introduction
Each order will specify the decimal precision with the "decimalDigits" attribute. In world currency, there is really only two formats to expect;
Two Decimal Digits
Most typically, orders will sent with payment amounts expressed in two decimal digits i.e. "decimalDigits": 2 for example, a channel could send an order with an "amount": 1050, which would equate to a transaction value of $10.50
Three Decimal Digits
In certain countries such as; Jordan, Kuwait, Oman and Bahrain, channels will process orders with prices expressed in three decimal digits i.e. "decimalDigits": 3
For example, a channel could send an order with an "amount": 1050, which would equate to a transaction value of 1.050.د.ب
Updated 9 days ago
Did this page help you?
