• Resolved martinja

    (@martinja)


    Hello,

    i have installed this plugin, but i get the error ‘13.3333’ is not a valid amount when i try to pay with Apple Pay. The price 13.3333 is a price entered in woocommerce (without VAT).

    subquestion; is it possible for apple pay to retrieve the shipping address from the checkout form?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Payment Plugins

    (@mrclayton)

    Hi @martinja,

    Thanks for contacting us. Why are you entering product prices with more than two decimals?

    No, at this time the integration populates the checkout fields based on the address chosen in the customer’s Apple Wallet. This is done so customer’s don’t have to fill out the billing fields since that information is already in their wallet.

    Kind Regards,

    Thread Starter martinja

    (@martinja)

    It’s done because otherwise we get rounding errors when users buy more products;

    the product is 16 with 20% tax. If i enter the price as 13,33 and user purchase 10pcs, it’s calculated as 13,33 (exvat) * 10 (pcs) * 1,2 (vat rate) = 159,96 incl. vat

    if i enter the price as 13,3333 * 10 * 1,2 = 159,9996 rounded up to 160; which is what i need.

    Plugin Author Payment Plugins

    (@mrclayton)

    @martinja,

    Navigate to your WC settings page and scroll down to the option Number of decimals

    What value do you have configured there?

    Thread Starter martinja

    (@martinja)

    It’s set to “2”

    Plugin Author Payment Plugins

    (@mrclayton)

    @martinja,

    We might have a rounding bug when decimals are greater than 2 for the product price. Can you reach out to us via our support email (the big Help icon that appears on all the plugin’s pages)?

    We will need your help testing an update.

    Thanks,

    Thread Starter martinja

    (@martinja)

    i just did, thank you for the fast response.

    Plugin Author Payment Plugins

    (@mrclayton)

    Version 3.1.7 released. Any product price that exceeds 2 decimals is rounded.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Apple Pay – invalid amount’ is closed to new replies.