You are here

function commerce_paypal_wps_commerce_payment_method_info in Commerce PayPal 7

Same name and namespace in other branches
  1. 7.2 modules/wps/commerce_paypal_wps.module \commerce_paypal_wps_commerce_payment_method_info()

Implements hook_commerce_payment_method_info().

File

modules/wps/commerce_paypal_wps.module, line 12
Implements PayPal Website Payments Standard in Drupal Commerce checkout.

Code

function commerce_paypal_wps_commerce_payment_method_info() {
  $payment_methods = array();
  $icons = commerce_paypal_icons();
  $display_title = t('!logo PayPal - pay securely without sharing your financial information', array(
    '!logo' => $icons['paypal'],
  ));
  $display_title .= '<div class="commerce-paypal-icons"><span class="label">' . t('Includes:') . '</span>' . implode(' ', $icons) . '</div>';
  $payment_methods['paypal_wps'] = array(
    'base' => 'commerce_paypal_wps',
    'title' => t('PayPal WPS'),
    'short_title' => t('PayPal'),
    'display_title' => $display_title,
    'description' => t('PayPal Website Payments Standard'),
    'terminal' => FALSE,
    'offsite' => TRUE,
    'offsite_autoredirect' => TRUE,
  );
  return $payment_methods;
}