• Resolved judyangel

    (@judyangel)


    Hi,

    I am using WooCommerce Payments and when doing a test credit card payment, I keep receiving the following error:

    ” You passed an empty string for ‘payment_method_data[billing_details][phone]’. We assume empty values are an attempt to unset a parameter; however ‘payment_method_data[billing_details][phone]’ cannot be unset. You should remove ‘payment_method_data[billing_details][phone]’ from your request or supply a non-empty value. ”

    FYI – The phone is an optional field.

    So I did another test where I field in the phone field, but I still received the same error message.

    Is there a fix for this?

    Thanks

Viewing 1 replies (of 1 total)
  • Plugin Support Fernando a11n

    (@fhaps)

    Automattic Happiness Engineer

    Hi @judyangel! This is one I haven’t seen before.

    I’ve tried to replicate this on a site of my own but I have been unable to do so. I don’t see this error when processing an order.

    The message would indicate that there’s something on the site that is allowing the checkout form to communicate with WooCommerce Payments without passing on the phone field. To start troubleshooting this, I’d recommend a conflict test. That will allow you to confirm whether a plugin or theme installed on the site might be the one creating that block.

    Here’s what I’d suggest:

    1. Switch the theme of your website to the free Storefront theme.

    2. Deactivate all the plugins except for WooCommerce and WooCommerce Payments. Then, check if the issue persists. If the problem is resolved then please move on to the next step.

    3. Activate features one by one while testing for the issue, until you find the one that is causing this behavior.

    We recommend that these steps are taken on a staging site, which is a clone of your live site that you can modify without risking making any permanent damage to your live site. You can create it using a plugin like WP-Staging. This plugin lets you copy and redeploy a WordPress site with minimal work.

    Hopefully that helps you narrow down the source. Let us know what you find out!

Viewing 1 replies (of 1 total)
  • The topic ‘Blank phone number causes transactions to not work’ is closed to new replies.