You are here

function commerce_paypal_reverse_payment_action in Commerce PayPal 7.2

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

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

File

./commerce_paypal.module, line 469
Implements PayPal payment services for use with Drupal Commerce.

Code

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