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.د.ب

3 Decimal Digits

Please note that not all the channels operating in regions where 3 decimal digits apply will send amounts in this format to Deliverect, in this case a POS should expect "decimalDigits": 2


Did this page help you?