Invalid payment method, but I don’t want any payment method
-
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!
- The topic ‘Invalid payment method, but I don’t want any payment method’ is closed to new replies.