Skip to content

Commit

Permalink
chore(docs): update README.MD with information about fraction digits (#…
Browse files Browse the repository at this point in the history
…494)

* chore(template): update readme.md with info about the currency convertions

* chore(readme.md): add reference to the payments sdk

* chore(readme.md): update readme.md
  • Loading branch information
joey-koster-ct authored Jan 13, 2025
1 parent b872187 commit 5143944
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,16 @@ The template contains two modules :

Regarding the development of processor module, please refer to the following documentations:

### Currencies

A special note regarding the usage of currencies and working with them. commercetools provides monetary values in cent amounts which adheres to the <https://en.wikipedia.org/wiki/ISO_4217> standard.

This means that for the currency `EUR` the minor units will be expressed with fraction digits of 2. I.e. a value of 1 euro and 50 cents will be expressed as `150`. Some currencies have 0 or even 4 fraction digits.

It's important to note that individual PSP could differ from this standard and/or require special attention when passing data between the connector and psp. So it's important to convert properly on the input and output layer when interacting with PSP.

commercetools provides the library [connect-payments-sdk](https://github.com/commercetools/connect-payments-sdk) which includes various utility function to help with these conversions.

- [Development of Processor](./processor/README.md)

#### 1. Develop your specific needs
Expand Down

0 comments on commit 5143944

Please sign in to comment.