You are here

Mollie.php in Commerce Mollie 8

File

src/Plugin/Commerce/PaymentMethodType/Mollie.php
View source
<?php

namespace Drupal\commerce_mollie\Plugin\Commerce\PaymentMethodType;

use Drupal\commerce_payment\Entity\PaymentMethodInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType\PaymentMethodTypeBase;

/**
 * Provides the credit card payment method type.
 *
 * @CommercePaymentMethodType(
 *   id = "mollie",
 *   label = @Translation("Mollie"),
 *   create_label = @Translation("Mollie"),
 * )
 */
class Mollie extends PaymentMethodTypeBase {

  /**
   * {@inheritdoc}
   */
  public function buildLabel(PaymentMethodInterface $payment_method) {
    return $this
      ->t('Mollie');
  }

  /**
   * {@inheritdoc}
   */
  public function buildFieldDefinitions() {
    $fields = parent::buildFieldDefinitions();
    return $fields;
  }

}

Classes

Namesort descending Description
Mollie Provides the credit card payment method type.