You are here

function uc_order_condition_payment_method in Ubercart 6.2

Check the order payment method.

1 string reference to 'uc_order_condition_payment_method'
uc_payment_ca_condition in payment/uc_payment/uc_payment.ca.inc
Implements hook_ca_condition().

File

payment/uc_payment/uc_payment.ca.inc, line 236
This file contains the Conditional Actions hooks and functions necessary to make the order related entity, conditions, events, and actions work.

Code

function uc_order_condition_payment_method($order, $settings) {
  return $order->payment_method == $settings['payment_method'];
}