Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Drupal\ach_payment\PluginForm;
- use Drupal\commerce_payment\PluginForm\PaymentGatewayFormBase;
- use Drupal\Core\Form\FormStateInterface;
- class ACHPaymentMethodAddForm extends PaymentGatewayFormBase {
- public function buildConfigurationForm(array $form, FormStateInterface $form_state) {
- $form['test_ach'] = [
- '#parents' => $form['#parents'],
- '#type' => 'textfield',
- '#title' => $this->t('Test ACH'),
- ];
- return $form;
- }
- public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
- // TODO: Implement submitConfigurationForm() method.
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement