public function PaymentGatewayBase::getPaymentMethodTypes in Commerce Core 8.2
Gets the payment method types handled by the payment gateway.
Return value
\Drupal\commerce_payment\Plugin\Commerce\PaymentMethodType\PaymentMethodTypeInterface[] The payment method types.
Overrides PaymentGatewayInterface::getPaymentMethodTypes
File
- modules/
payment/ src/ Plugin/ Commerce/ PaymentGateway/ PaymentGatewayBase.php, line 247
Class
- PaymentGatewayBase
- Provides the base class for payment gateways.
Namespace
Drupal\commerce_payment\Plugin\Commerce\PaymentGatewayCode
public function getPaymentMethodTypes() {
// Filter out payment method types disabled by the merchant.
return array_intersect_key($this->paymentMethodTypes, array_flip($this->configuration['payment_method_types']));
}