You are here

function payment_rules_condition_payment_method_controller_supports_currency in Payment 7

Implements Rules condition callback: check whether a payment method controller supports a currency.

This function is deprecated. Use payment_rules_condition_payment_method_supports_currencies() instead.

Parameters

Payment $payment: The payment to check the condition for.

string $currency_code: The ISO 4217 currency code to check for.

Return value

boolean

See also

payment_rules_condition_payment_method_supports_currencies()

File

./payment.rules.inc, line 554
Rules integration.

Code

function payment_rules_condition_payment_method_controller_supports_currency(Payment $payment, $currency_code) {
  return $payment->method && payment_rules_condition_payment_method_supports_currencies($payment->method, array(
    $currency_code,
  ));
}