modules/acm_payment/src/Plugin/CheckoutPane/PaymentMethods.php
public function getPlugin($plugin_id) {
    $cart = $this->getCart();
    $paymentMethodManager = \Drupal::service('plugin.manager.acm_payment_method');
    return $paymentMethodManager->createInstance($plugin_id, [], $cart);
  }
public function getPlugin($plugin_id) {
    $cart = $this->getCart();
    $paymentMethodManager = \Drupal::service('plugin.manager.acm_payment_method');
    return $paymentMethodManager->createInstance($plugin_id, [], $cart);
  }
public function getPlugin ( $ plugin_id ) { $ cart = $ this -> getCart ( ) ; $ paymentMethodManager = \ Drupal :: service ( 'plugin.manager.acm_payment_method' ) ; return $ paymentMethodManager -> createInstance ( $ plugin_id , [ ] , $ cart ) ; }
Gets a specific payment method plugin.

@param string $plugin_id
The plugin id.
Gets a specific payment method plugin .