• Resolved rajgorjaydeep

    (@rajgorjaydeep)


    We have required fields added on checkout but when someone chooses GPay, those fields doesn’t considered as required and order is placed successfully.

    Can you please guide us how to resolve it?

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

    (@mrclayton)

    Hi. @rajgorjaydeep

    those fields doesn’t considered as required and order is placed successfully.

    Then that means the field isn’t really required. WooCommerce validates all required fields in the class-wc-checkout.php file when the checkout form is submitted. If a required field is missing a value, then WooCommerce will return to the browser and display a notice. The payment gateway is not called until after WooCommerce validates all fields.

    This isn’t a Stripe plugin issue.

    Kind Regards

    Thread Starter rajgorjaydeep

    (@rajgorjaydeep)

    Hello,

    We are using checkoutwc. It allows the checkout even if user has not entered their name.

    Also, with checkoutwc, we allow the option to add custom amount as tip and that is also not passing to the Gpay.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @rajgorjaydeep

    CheckoutWC is a premium plugin so I recommend you contact them regarding this request. Their team is great and responds quickly so you should get the help you need.

    Kind Regards

    Thread Starter rajgorjaydeep

    (@rajgorjaydeep)

    Hello,

    We have removed CheckoutWC and the problem remains the same, even if I do not enter the required “First Name” and “Last Name” it allows me to go to GooglePay payment. Please check the same here: https://oakbarrel.zenzen1.com/checkout/

    Thank you.

    Plugin Author Clayton R

    (@mrclayton)

    Hi @rajgorjaydeep

    it allows me to go to GooglePay payment

    There is a difference between the GPay wallet opening and a payment actually being processed. A payment is not processed until the checkout form submits and all required fields are validated via the class-wc-checkout.php file.

    Just because the GPay wallet opens, that doesn’t mean a payment is processed. I tested your checkout page and WooCommerce is validating your required fields and preventing the payment from being processed if any required fields are missing values.

    Thanks

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

The topic ‘Validation Issues’ is closed to new replies.