You are here

function commerce_paypal_checkout_method_instance_load in Commerce PayPal 7.2

Load the given PayPal checkout payment method instance.

Parameters

$rule_name: The enabling's rule name.

Return value

The payment method instance object which is identical to the payment method object with the addition of the settings array.

File

modules/checkout/commerce_paypal_checkout.module, line 140
Implements PayPal Checkout in Drupal Commerce checkout.

Code

function commerce_paypal_checkout_method_instance_load($rule_name) {
  return commerce_payment_method_instance_load("paypal_checkout|{$rule_name}");
}