You are here

function commerce_paypal_wps_submit_form in Commerce PayPal 7.2

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

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

File

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

Code

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