• Resolved webdev

    (@swapnilwebdev)


    I have setup stripe in test mode and its working ok with credit card checkout, then i have enabled Google Pay from settings.
    When i tested it it shows error

    Billing Last name is a required field

    What should I do to fix it?
    I have already checked by changing theme to default themes, but still shows same error..

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support tijosh

    (@tijosh)

    Hey there @swapnilwebdev,

    Can you give us a bit more info about this? Is it on the checkout page or directly on the product page itself?

    If it’s on the checkout page, have you customized the billing fields using a plugin so that the First Name or Last Name fields were removed?

    Thread Starter webdev

    (@swapnilwebdev)

    Hi,

    Currently Google Pay button shows on product page and cart page , not on checkout as Google Pay used for faster checkouts, so with google pay we don’t have any form to fill..

    I have tested from cart page it shows “Billing Last name is a required field error” in cart page, where there is no any form to fill..

    error is due to Billing Last name is a required by default for woocommerce, and as I know google pay does not pass Last name, it only pass data in First name…

    I have fixed the error by adding code to disabled required field for Last name, and then it works…

    Plugin Support tijosh

    (@tijosh)

    Thanks for letting us know it’s resolved on your end. We’ll close out this thread, but if you have more questions, feel free to open a new topic.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Billing Last name is a required field error with Google Pay’ is closed to new replies.