Payment Method option for Cash or Check

June 18, 2018
Bailey Killian

By default, it should have Cash and Check under there as well for in-person payments. Right now it only has the Payment Method as whatever payment gateway extension is installed, such as PayPal. Currently we have tp leave it blank and put a note in the Payment ID or Memo.

3 Comments. Leave new

I was able to figure out how to add extra payment methods via functions.php

Add this code to enable payments via Check and Cash.

add_filter(‘sliced_register_payment_method’, ‘add_check_method’);
function add_check_method( $pay_array ) {

$payments = get_option( ‘sliced_payments’ );{
$pay_array[‘check’] = ‘Check’;
$pay_array[‘cash’] = ‘Cash’;
}

return $pay_array;
}

randyabidin-com
April 22, 2021 11:50 am

Thanks Cameron!!!
I was looking or this too.

One note: When I selected your text and pasted in my editor, VS Code, the single quotes turned into curved quotes (which gave me an error). When I changed them to single quotes in my editor, your solutions worked perfectly.
I don’t know if that issue is here or what is pasted in your April 9 entry – just a heads up 😉

Andrew Campbell
April 13, 2023 10:10 am

I used Code Snippet (https://wordpress.org/plugins/code-snippets/) and added this code. You will need to change the single quotes to straight quotes as Randy said, but it works perfectly.

Leave a Reply

Your email address will not be published.