You are here

function _payment_method_data in Ubercart 6.2

Same name and namespace in other branches
  1. 5 payment/uc_payment/uc_payment.module \_payment_method_data()

Returns data from a payment method by method ID and the array key.

7 calls to _payment_method_data()
uc_checkout_pane_payment in payment/uc_payment/uc_payment_checkout_pane.inc
@file Checkout pane functions for uc_payment.module.
uc_order_pane_payment in payment/uc_payment/uc_payment_order_pane.inc
Handles the Payment order pane.
uc_payment_enter in payment/uc_payment/uc_payment.module
Enters a payment for an order.
uc_payment_get_details in payment/uc_payment/uc_payment.module
uc_payment_order in payment/uc_payment/uc_payment.module
Implements hook_order().

... See full list

File

payment/uc_payment/uc_payment.module, line 793

Code

function _payment_method_data($method_id, $key) {
  $methods = _payment_method_list();
  foreach ($methods as $method) {
    if ($method['id'] == $method_id) {
      return isset($method[$key]) ? $method[$key] : NULL;
    }
  }
}