chdecultot
Forum Replies Created
-
Dear @omardabbas,
Thank you very much for your help trying to solve this issue.
I made a new install on a fresh server and was able to create customers without issues.
It is most certainly a plugin conflict issue.
For your information, the website I’m trying to make an integration with, uses the plugins Role Based Pricing for WooCommerce and MembersMaybe one of them is in conflict with your plugin…
It has been decided to leave the VAT # field optional for now, so I won’t be investigating further. But I hope this conversation will be helpful for others.
Thanks again for your involvement. Have a very nice day/evening !Dear Omar,
Please find below the requested elements:
1. Settingshttps://drive.google.com/file/d/1auExGf0YJcW4pPK8dBkP6SWanoki79OP/view?usp=share_link
2. Checkout
https://drive.google.com/file/d/1DJ7JBz2PN_ZQr9uyjE2y_NuilL0KnNtt/view?usp=share_link
3. Logs after checkout
https://drive.google.com/file/d/1gdrxc7zIFXQ5NHoM28RvCk7Qsvcei1j-/view?usp=share_linkI hope it helps
Hi @omardabbas
Thank you very much for your help.
Sorry for the response delay, it took some time to get the old version installed and to retest.
Unfortunately we get the same error message with v2.8.4 and validation method set to SOAP
Here are the latest error message and woocommerce logs:{"code":"billing_eu_vat_number_error","message":"N\u00b0 TVA Intracommunautaire n\u2019est pas valide.","data":{"status":400}}2023-01-17T17:42:37+00:00 INFO Error: Exception: INVALID_INPUT (Country: []; VAT ID: []; Company: []; Method: [soap]) 2023-01-17T17:42:37+00:00 INFO Error: VAT ID not valid (Country: []; VAT ID: []; Company: []; Method: [curl])And still the same, if the VAT field is set as optional, it works correctly.
Do you have any other idea of the cause ?
Thank you very much in advanceDear Omar,
Thank you very much for your answer.
Unfortunately the call returns the same error message.
The call syntax you provide is correct. If I set the VAT field as optional, the customer is correctly created and the VAT number is correctly registered.
It seems to be a problem with the validation (given that I’m 100% certain the provided VAT number is correct)
I have activated the log and the output is the following:2023-01-09T08:44:28+00:00 INFO Erreur : exception INVALID_INPUT (Pays : [] ; N° de TVA : [] ; Société : [] ; Méthode : [soap]) 2023-01-09T08:44:28+00:00 INFO Erreur : N° de TVA non valide (Pays : [] ; N° de TVA : [] ; Société : [] ; Méthode : [curl])The VAT number seem to be blank when the validation is done, but in reality it is present in the API call. Maybe it is a problem with the validation chronology ?
Thanks again in advance for your help.- This reply was modified 3 years, 5 months ago by chdecultot.
Hi @omardabbas,
Thank you very much for your kind response.
I have tried with an object similar to the below (data have been modified for the forum). The provided VAT number is valid.{'email': '[email protected]', 'first_name': '', 'last_name': '', 'username': 'hello', 'billing': {'first_name': '', 'last_name': '', 'company': 'My Company', 'address_1': '7 road to sunrise', 'address_2': '', 'city': 'New York', 'state': '', 'postcode': '11111', 'country': 'United States', 'email': '[email protected]', 'phone': ''}, 'shipping': {}, 'meta_data': [{'billing_eu_vat_number': 'FR39356000000'}], 'password': '5b215588cc'}The response returned is
{"code":"billing_eu_vat_number_error","message":"N\u00b0 TVA Intracommunautaire n\u2019est pas valide.","data":{"status":400}}Thanks in advance for your help if know how to pass this data