Triggering verification on certain payment methods

Wordpress

You can get to the order’s payment method via $order->get_payment_method() - the trick here is that the ids and titles are determined by the installed payment gateways. Here’s a way to get a list of them. 


$installed_payment_methods = WC()->payment_gateways->payment_gateways();

foreach( $installed_payment_methods as $method ) {

echo $method->id . ' - ' . $method->title . '<br />';

}


Once you know which methods you want to include or exclude you can call $order->get_payment_method() and follow the instructions on How do I turn Token of Trust on/off order by order? to build a filter that works for you.


Shopify & other platforms

This feature is not available.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us