You are here

function commerce_payflow_commerce_payment_method_info in Commerce PayPal 7.2

Implements hook_commerce_payment_method_info().

File

modules/payflow/commerce_payflow.module, line 211
Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.

Code

function commerce_payflow_commerce_payment_method_info() {
  $payment_methods = array();
  $payment_methods['payflow_link'] = array(
    'base' => 'commerce_payflow_link',
    'buttonsource' => 'CommerceGuys_Cart_PFL',
    'title' => t('Payflow Link'),
    'short_title' => t('Payflow Link'),
    'description' => t('Payflow Link Hosted Checkout Pages'),
    'terminal' => FALSE,
    'offsite' => TRUE,
    'offsite_autoredirect' => FALSE,
  );

  // Note that the PayPal Payments Advanced payment method uses the same 'base'
  // value as Payflow Link. These are the same service offered by PayPal, they
  // just offer US merchants the ability to use Payflow Link with PayPal as the
  // payment processor and call it PayPal Payments Advanced. We reuse the same
  // code for these two methods .with the exception of a thin wrapper around the
  // settings form. This means data from PPA transactions may be stored in
  // variables as payflow_link data, but it's all one and the same.
  $payment_methods['paypal_ppa'] = array(
    'base' => 'commerce_payflow_link',
    'buttonsource' => 'CommerceGuys_Cart_PPA',
    'title' => t('PayPal Payments Advanced'),
    'short_title' => t('PayPal Payments Advanced'),
    'description' => t('PayPal Payments Advanced Hosted Checkout Pages'),
    'terminal' => FALSE,
    'offsite' => TRUE,
    'offsite_autoredirect' => FALSE,
    'callbacks' => array(
      'settings_form' => 'commerce_paypal_ppa_settings_form',
    ),
  );
  return $payment_methods;
}