You are here

function commerce_payment_method_load in Commerce Core 7

Returns a payment method array.

Parameters

$method_id: The ID of the payment method to return.

Return value

The fully loaded payment method object or FALSE if not found.

7 calls to commerce_payment_method_load()
CommercePaymentTransactionEntityController::buildContent in modules/payment/includes/commerce_payment_transaction.controller.inc
Builds a structured array representing the entity's content.
commerce_payment_handler_field_payment_method::render in modules/payment/includes/views/handlers/commerce_payment_handler_field_payment_method.inc
Render the field.
commerce_payment_method_instance_load in modules/payment/commerce_payment.module
Returns a payment method instance array which includes the settings specific to the context of the instance.
commerce_payment_pane_checkout_form in modules/payment/includes/commerce_payment.checkout_pane.inc
Payment pane: form callback.
commerce_payment_payment_transaction_delete_form in modules/payment/includes/commerce_payment.forms.inc
Form callback: confirmation form for deleting a transaction.

... See full list

File

modules/payment/commerce_payment.module, line 610
Defines the payment system and checkout integration.

Code

function commerce_payment_method_load($method_id) {
  $payment_methods = commerce_payment_methods();
  return isset($payment_methods[$method_id]) ? $payment_methods[$method_id] : FALSE;
}