• Hi
    I’m using your wonderful plugin for my website.
    Even if the shipping phone is required, I receive order from PayPal Express Checkout without shipping phone.
    I activated the phone field to required mode in my paypal account.
    Do you have an idea how to prevent this ?
    Is there a way to prevent order validation if a required field is missing, even through express checkout ?
    Thank you

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

    (@mrclayton)

    Hi @sylvainnascimento

    Even if the shipping phone is required

    If a shipping phone field is required, then the order should not proceed because WooCommerce performs a validation during the checkout process that ensures all required fields have a valid value. That is part of core WooCommerce.

    The PayPal plugin is also coded to add the phone number value to the shipping_phone field if it’s provided. That leads me to believe that your phone field might be removed by some 3rd party plugin after validations pass.

    Are you using the checkout block or checkout shortcode?

    Kind Regards

    Thread Starter sylvainnascimento

    (@sylvainnascimento)

    Thanks for the reply !

    I’m using new Woocommerce Checkout Blocks, not shortcode.

    This behavior is only when using Paypal’s Express Checkout

    There’s no phone number in Paypal shipping address and Woocommerce seems to validate the order without required shipping phone.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @sylvainnascimento

    The checkout block is a different type of integration and the validation logic is different than the checkout shortcode.

    When configuring the block, you can set the shipping phone to be required. I am not sure why Woo isn’t validating it but that’s not a PayPal plugin issue.

    I’ve reviewed the code and when using the block, the phone number is applied to the billing address. I’ve made a note to have the code updated so the phone is applied to the shipping address as well when express checkout is used.

    Kind Regards

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Required phone is missing’ is closed to new replies.