• Hi,

    I use Woocommerce for my events that are generated with The Events Calendar.

    I never want to have any payment methods activated because we always handle the payment workflow by hand.
    Now I have an event with two different tickets, one for 200€, the other for 500€. When a customer now selects one of those tickets and fills out the checkout form with name, etc. and then clicks on the ‘buy’-button, he gets an error: “invalid payment method”. But I have never chosen any payment method in the settings?
    By the way: when a ticket is for free, it works perfectly.

    How can I disable the requirement of a payment method?
    I found this code to put in functions.php, but then I get an “500 – Internal Server error” when I click the ‘buy’-button:
    add_filter('woocommerce_cart_needs_payment', '__return_false');

    Many thanks in advance!

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

    (@riaanknoetze)

    Why don’t you simply enabled a payment gateway like COD and change the label to “Manual Payment”?

    Thread Starter chtoma27587

    (@chtoma27587)

    With this I get an Internal Server Error, too.

    Thread Starter chtoma27587

    (@chtoma27587)

    Update:

    The Internal Server Error only occurs when I try to buy a ticket when I’m logged in. Otherwise it’s okay.
    Nevertheless it should work in another way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Invalid payment method, but I don’t want any payment method’ is closed to new replies.