You are here

function commerce_paypal_wpp_reverse_payment_action in Commerce PayPal 7

Returns the description of a transaction type for a PayPal WPP payment action.

1 call to commerce_paypal_wpp_reverse_payment_action()
commerce_paypal_wpp_submit_form_submit in modules/wpp/commerce_paypal_wpp.module
Payment method callback: checkout form submission.

File

modules/wpp/commerce_paypal_wpp.module, line 576
Implements PayPal Website Payments Pro in Drupal Commerce checkout.

Code

function commerce_paypal_wpp_reverse_payment_action($payment_action) {
  switch (strtoupper($payment_action)) {
    case 'AUTHORIZATION':
      return t('Authorization only');
    case 'SALE':
      return t('Authorization and capture');
  }
}