Mollie.php in Commerce Mollie 8
Same filename in this branch
File
src/Plugin/Commerce/PaymentMethodType/Mollie.phpView 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;
}
}