• Resolved bociakrodyl

    (@bociakrodyl)


    We use your plugin EU VAT Assistant. It’s great, it makes it easier to place orders. No need to manually deduct VAT.
    But we have a problem with the EU VAT number.

    We have two methods of payment: bank transfer and PayPal Express.

    EU VAT number is stored in the database, when someone places an order and select the bank transfer. This works fine.
    However, if someone pays by PayPal Express strange thing happens:

    1. If the conditions are met, the VAT amount is properly removed (client is the company from the EU)
    2. But EU VAT number is not stored in the database,
    and it makes us every time write to customers.

    Please help, any tips?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diego

    (@daigo75)

    The EU VAT Assistant stores the VAT number when the checkout is completed, in the following locations:

    • On woocommerce_checkout_update_order_meta event, the VAT number is saved against the order, in the vat_number meta and as part of the _eu_vat_evidence meta.
    • On woocommerce_checkout_update_user_meta event, the VAT number is saved against the user profile, if the user is logged in, in the vat_number user meta.

    If, for any reason, the PayPal Express plugin you are using doesn’t trigger the above events after the payment, or if it removes the VAT number during the checkout process, then the number won’t be saved against your database. This issue doesn’t depend on the EU VAT Assistant.

    The easiest way to to find the exact cause of the issue, would be to debug the payment process on your site, step by step, to see where the VAT number is “lost”. This operation requires some knowledge about WooCommerce code, you can ask your developer to check that for you.

    If you need assistance with this debugging, you can contact us to schedule a consultation.

    • This reply was modified 7 years, 8 months ago by Diego.
    Thread Starter bociakrodyl

    (@bociakrodyl)

    Thanks Diego for fast response!
    It seems that we will have to change the PayPal plugin.
    Do you know the PayPal plugin that does not remove the VAT number from your plugin?
    Thanks in advance!

    Plugin Author Diego

    (@daigo75)

    We don’t run tests with specific payment plugins, but you might try PayPal for WooCommerce, as it’s quite popular and it should be reliable.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with save EU VAT number in database’ is closed to new replies.