Advertisement
Guest User

Untitled

a guest
Aug 20th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2.  
  3. namespace Drupal\ach_payment\PluginForm;
  4.  
  5. use Drupal\commerce_payment\PluginForm\PaymentGatewayFormBase;
  6. use Drupal\Core\Form\FormStateInterface;
  7.  
  8. class ACHPaymentMethodAddForm extends PaymentGatewayFormBase {
  9.  
  10.   public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
  11.     $form['test_ach'] = [
  12.       '#parents' => $form['#parents'],
  13.       '#type' => 'textfield',
  14.       '#title' => $this->t('Test ACH'),
  15.     ];
  16.  
  17.     return $form;
  18.   }
  19.  
  20.   public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  21.     // TODO: Implement submitConfigurationForm() method.
  22.   }
  23.  
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement