- Plugins and Extensions
- Magento 2
- WPG plugin for Magento 2
- Dynamic currency exponents
Dynamic currency exponents
Use this feature to configure the expected exponent value for different currencies. This value applies when sending requests to Worldpay.
NOTE: The exponent value determines how many decimal places there are when processing a currency. For example GBP has an exponent value of 2.
How to setup dynamic exponent
Do the following:
Go to Stores/Configuration/Sales/Worldpay/Miscellaneous. The Miscellaneous screen appears:
Use the information in the table to complete the fields.
|Global Currency Exponent||You can define a global value that applies to all currencies.|
|Use system value||The default exponent defined at the Worldpay end is 2. Select this option, to define the global value as 2.|
|Override Global Currency Exponent||Enable this option to override the global exponent value for any particular currency.|
|Currency Code Exponents||Use this feature to configure exponents to various currencies. This configuration is applied only when Override Global Currency Exponent is enabled. Currency which is not added to this list will take global exponent value 2.|
How to setup currency code exponents
To set up currency code exponents, do the following:
- Go to Stores/Configuration/Sales/Worldpay/Miscellaneous/ Currency Code Exponents. The Currency Code Exponents screen appears.
- Use the information in the table to complete the fields.
|Currency Code||A unique ISO currency code, used by the Worldpay Payment Gateway.|
|Currency||A unique ISO currency name, used by the worldwide payment gateway.|
|Exponent||This enables you to configure the exponent value for each currency.|
|Action||If you need to add a new currency code exponent during future development, a delete icon appears so you can delete the incorrect new value.|
NOTE: For more details, read the