value cannot have decimals for JPY

Issue #7 resolved
Former user created an issue

Current

When the currency is JPY, Payment via PayPal causes error, "value cannot have decimals for JPY"

JPY Currency

JPY means Japanese Yen. JPY does not have decimals.

How to Reproduce

  1. Sets the currency JPY

  2. Setups consumption tax 8% It will create decimal prices.

  3. Payment via Paypal causes error. JPY does not have decimals, but seems that the tax calculation creates decimals, causing an error. FormatConverter.php formatToPrice, l46-61

Proposal

Apply floor/round after tax calculation.

Comments (3)

  1. Fabian Bitter repo owner

    Hello,

    thank you for your error report. I was able to reproduce and fix this bug.

    Version 0.9.7.8 will be ready to download in 10 minutes.

    Thank you for using Bitter Shop System!

    Fabian

  2. Fabian Bitter repo owner

    PS: In general settings of shop system, section "Money Format" you have to set the decimal to 0 to get this work.

  3. Log in to comment