• Stripe payment gateway plugin does not respect Required custom fields, although it does respect Required standard fields. When click on the CONTINUE TO PAY button, a modal pops up to accept the credit card information even if the required custom fields are empty. But if there any required standard field(any default field say Billing First Name) is empty along with the empty custom required fields, then it correctly showing the required field error messages for standard fields as well as custom fields. Appreciate your help..

    Thanks!!!!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Zandy Ring

    (@zandyring)

    Automattic Happiness Engineer

    Hi sajeertk,

    The WooCommerce Stripe plugin doesn’t have editable fields – can you link me to your site so I can take a look? It sounds like you’re working on a custom integration, in which case you’ll want to contact a developer for help with your site (it’s a bit outside the scope of support we can provide).

    Cheers!

    Thread Starter sajeertk

    (@sajeertk)

    Hi, it is very simple to reproduce please try below steps,

    1. Add a custom field (required field) in checkout form with the help of below article.
    https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    2. Click on CONTINUE TO PAY button after filling all checkout fields except the custom field (newly added one).

    Phil

    (@fullysupportedphil)

    Automattic Happiness Engineer

    Hi Jaeertk,

    If you are using version 3.0.7, the plugin will support custom required fields if they are properly added.

    Here’s a quick little demo I just ran to test this, using our Checkout Field Editor plugin to add a custom field.

    https://cld.wthms.co/GO5O/3rvV5mLP

    Thread Starter sajeertk

    (@sajeertk)

    I have investigated this further and found that the validation behavior is different when WooCommerce Stripe plugin is ENABLED and when NOT ENABLED.

    Please see below findings (Please note that, all the below tests done by filling all the required fields except the custom required fields).

    When WooCommerce Stripe plugin is not enabled
    ———————————————
    1. Required validation is WORKING all time for the fields displayed using the below hooks,
    woocommerce_checkout_before_customer_details
    woocommerce_checkout_after_customer_details

    2. Required validation is WORKING all time for the fields displayed using the below hooks,
    woocommerce_checkout_before_order_review
    woocommerce_checkout_after_order_review

    When WooCommerce Stripe plugin enabled
    ——————————————
    1. Required validation is NOT WORKING for the fields displayed using the below hooks,
    woocommerce_checkout_before_customer_details
    woocommerce_checkout_after_customer_details

    2. Required validation is working for the fields displayed using the below hooks only when the “Ship to a different address?” checkbox is checked,
    woocommerce_checkout_before_order_review
    woocommerce_checkout_after_order_review

    Thanks…

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hey there @rajeertk – thanks for the information! We’re looking into this from our end and I’ll let you know as soon as we have some more information.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Hi there!

    I’ve dug into this from our end.

    You mentioned this snippet:
    https://docs.woocommerce.com/document/tutorial-customising-checkout-fields-using-actions-and-filters/

    These snippets are provided as-is, without any further support. I’ve passed this on to our docs team, though, so we can double check that snippet.

    Given that Stripe does respect the custom fields created by our plugin, Checkout Fields Editor, I recommend using that plugin.

    Our support staff, including myself, are not developers who are able to help with these changes. We’re Support Ninjas and can only offer support for the default features and functionality of our extensions.

    I wish I could help more, but hopefully this gets you going in the right direction to get the job done.

    Plugin Support Hannah S.L.

    (@fernashes)

    Automattic Happiness Engineer

    Further support is being handled through #526119 so that we have one point of communication. Thanks!

    Where is this link being continued? I am running into the same issue.

    For testing I have simply added this action:

    function testttttter() {
      wc_add_notice( 'test this', 'error' );
    }
    add_action('woocommerce_checkout_process', 'testttttter');

    Which should trigger the error notice every time the cart is updated regardless of required fields. When Stripe is being used the notice does not appear unless one of the main WooCommerce checkout fields triggers an error as well. If all default WooCommerce checkout fields are valid then wc_add_notice() does not trigger at all.

    I too am having this problem with requiring order notes. I have used a plugin to make them required but they do not validate until AFTER the Stripe modal box has appeared. The other fields (billing etc) do validate before the modal box. @fernashes what exactly is #526119 ?

    • This reply was modified 7 years, 4 months ago by jpottaway.

    I’m seeing the same thing. I limit the states to certain values “Colorado, California, etc.” An error is thrown if ANOTHER error is on the page. However if it is the only error, Stripe continues with the order.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Stripe payment gateway plugin does not respect Required custom fields’ is closed to new replies.