You are here

function commerce_robokassa_submit_form in Commerce robokassa 7

Same name and namespace in other branches
  1. 7.2 commerce_robokassa.module \commerce_robokassa_submit_form()

Payment method callback; generation callback for the payment submission form.

Parameters

$payment_method: An array of the current settings.

$pane_values: The current values of the pane.

$checkout_pane: The checkout pane array.

$order: The order object.

Return value

A form snippet for the checkout pane.

File

./commerce_robokassa.module, line 65

Code

function commerce_robokassa_submit_form($payment_method, $pane_values, $checkout_pane, $order) {
  $build = array();
  $text = theme('image', array(
    'path' => drupal_get_path('module', 'commerce_robokassa') . '/logo.gif',
    'alt' => t('Robokassa'),
    'title' => t('Robokassa'),
    'attributes' => array(
      'class' => 'logo-robokassa',
    ),
  ));
  $text .= '<div class="desc">' . t('Robokassa - Organization of the electronic payments receiving.') . '</div>';
  $build['print_receipt'] = array(
    '#markup' => $text,
  );
  return $build;
}