globalpayments / php-sdk

GNU General Public License v2.0
49 stars 66 forks source link

Currency formatting in GpEcomAuthorizationRequestBuilder #123

Open KennyCamba opened 9 months ago

KennyCamba commented 9 months ago

The GpEcomAuthorizationRequestBuilder class always formats the amount to two decimal places, but this format depends on the currency. For example the CLP currency has no decimal places.

https://github.com/globalpayments/php-sdk/blob/2cde8d97ce77c7175a8c47f429465a7c764eb3f3/src/Builders/RequestBuilder/GpEcom/GpEcomAuthorizationRequestBuilder.php#L84