• Resolved braderdesign2

    (@braderdesign2)


    Hi, I encountered an invalid payment method in checkout thru COD.

    I find that this is due to the billing_postcode that is disable but instead all of the billing and shipping details are in notes(On her request). Without the billing_postcode, the COD payment method would show an invalid payment method. Show the billing_postcode would fix the issue.

    How do I fix this apart from show the billing_postcode? My client would like to hide billing_postcode.

    Upon further checking, this issue is due to the shipping method that is not chose. When add billing_postcode, I have to choose between two shipping method, if choose, can proceed to checkout. This shipping method will not come out if there are no billing_postcode. If I could bypass this, that would be great.

    • This topic was modified 4 years, 3 months ago by braderdesign2.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @braderdesign2

    This shipping method will not come out if there are no billing_postcode. If I could bypass this, that would be great.

    By default, postcode fields are required in WooCommerce so they include validation. However, there are several ways to bypass the postcode requirement. Here is a detailed article for your reference: https://quadlayers.com/disable-woocommerce-postcode-validation/

    I hope this helps!

    Thread Starter braderdesign2

    (@braderdesign2)

    Hi @margaretwporg

    Thank you for that link, I tried and it still did not work. I think this is due to the

    <tr class=”woocommerce-shipping-totals shipping”>

    For COD payment method, it require to tick the `<tr class=”woocommerce-shipping-totals shipping”> or otherwise it would come out as ‘Invalid Payment Method’. Is there a way to work around this? Only for COD payment, others payment method works quite fine

    Plugin Support EastOfWest a11n

    (@eastofwest)

    Howdy @braderdesign2. The error you’re encountering could depend on several factors. How are you hiding the postcode, for instance? Also, is your COD payment method tied to a shipping method?

    Under WooCommerce > Settings > Payments > Cash on Delivery, have you selected anything for “Enable for shipping methods”?

    To get a better understanding of what you’re looking at and where you’re seeing that error, could you please send a few screenshots to illustrate? Please include screenshots of the following:

    • WooCommerce > Settings > Payments > Cash On Delivery settings
    • WooCommerce > Setting > Shipping > Shipping Zones
    • If your COD is tied to a shipping method, please also provide screenshot of the specific zones thos shipping methods are in, as well as their particular setup.

    Either upload the screenshots to your media library and share the direct links with us, or you can use a service like Droplr or CloudApp and share their links with us here.

    Please also include a link to the site so that we can see this issue in action.

    We haven’t heard back from you in a while, so I’m marking this thread as resolved – we’ll be here if and/or when you are ready to continue.

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

The topic ‘Invalid Payment Method for COD’ is closed to new replies.