You are here

function commerce_paypal_ec_submit_form in Commerce PayPal 7.2

Payment method callback: adds a message to the submission form if enabled in the payment method settings.

File

modules/ec/commerce_paypal_ec.module, line 647
Implements PayPal Express Checkout in Drupal Commerce checkout.

Code

function commerce_paypal_ec_submit_form($payment_method, $pane_values, $checkout_pane, $order) {
  $form = array();
  if (!empty($payment_method['settings']['show_payment_instructions'])) {
    $form['paypal_ec_information'] = array(
      '#markup' => '<span class="commerce-paypal-ec-info">' . t('(Continue with checkout to complete payment via PayPal.)') . '</span>',
    );
  }
  return $form;
}