You are here

function uc_payment_order_pane_ajax_callback in Ubercart 7.3

AJAX callback to render the payment method pane.

1 string reference to 'uc_payment_order_pane_ajax_callback'
uc_order_pane_payment in payment/uc_payment/uc_payment_order_pane.inc
Handles the Payment order pane.

File

payment/uc_payment/uc_payment_order_pane.inc, line 125
Contains the callbacks for the payment order pane supplied with Ubercart and their corresponding helper functions.

Code

function uc_payment_order_pane_ajax_callback($form, &$form_state) {
  $commands[] = ajax_command_replace('#payment-details', trim(drupal_render($form['payment']['payment_details'])));
  $commands[] = ajax_command_prepend('#payment-details', theme('status_messages'));
  return array(
    '#type' => 'ajax',
    '#commands' => $commands,
  );
}