Commit f82f8957 authored by adelgado12's avatar adelgado12
Browse files

Resolve #3261068 "The module doesnt"

parent 4619ac2c
Loading
Loading
Loading
Loading
+21 −0
Original line number Diff line number Diff line
@@ -5,6 +5,7 @@
 * Commerce Paybox Payment - Main module file.
 */

use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Form\FormStateInterface;

/**
@@ -18,3 +19,23 @@ function commerce_paybox_payment_form_alter(&$form, FormStateInterface $form_sta
    unset($form['form_id']);
  }
}

/**
 * Implements hook_help().
 */
function commerce_paybox_payment_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.commerce_paybox_payment':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Paybox integration for the Drupal Commerce payment and checkout system. This module carries part of the functionality of the module on Drupal 8/9/10, Paybox Service method using Commerce Payment Gateway is implemented here.') . '</p>';
      $output .= '<h3>' . t('Configuration') . '</h3>';
      $output .= '<ol>';
      $output .= '<li>' . t('Navigate to Administration > Extend and enable the module.') . '</li>';
      $output .= '<li>' . t('Navigate to Commerce > Configuration > Payment > Payment Gateways') . '</li>';
      $output .= '<li>' . t('Add payment gateway') . '</li>';
      $output .= '<li>' . t('Choice Paybox Plugin and save plugin.') . '</li>';
      $output .= '</ol>';
      return $output;
  }
}