PayPalBasicOperationsProvider.php in PayPal for Payment 2.0.x
File
src/Plugin/Payment/Method/PayPalBasicOperationsProvider.php
View source
<?php
namespace Drupal\paypal_payment\Plugin\Payment\Method;
use Drupal\payment\Plugin\Payment\Method\BasicOperationsProvider;
abstract class PayPalBasicOperationsProvider extends BasicOperationsProvider {
protected function getPaymentMethodConfiguration($plugin_id) {
$entity_id = explode(':', $plugin_id)[1];
return $this->paymentMethodConfigurationStorage
->load($entity_id);
}
}