function commerce_payflow_link_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/
payflow/ commerce_payflow.module, line 516 - Implements PayPal Payments Advanced (U.S. only) and Payflow Link Hosted Checkout pages and Transparent Redirect.
Code
function commerce_payflow_link_submit_form($payment_method, $pane_values, $checkout_pane, $order) {
$form = array();
if (!empty($payment_method['settings']['show_payment_instructions'])) {
$class = $payment_method['method_id'] == 'payflow_link' ? 'commerce-payflow-link-info' : 'commerce-paypal-pa-info';
$form[$payment_method['method_id'] . '_information'] = array(
'#markup' => '<span class="' . $class . '">' . t('(Continue with checkout to complete payment via PayPal.)') . '</span>',
);
}
return $form;
}