public function PaymentReceipt::getMethod in Ubercart 8.4
Returns the payment method that was used for this payment.
Return value
\Drupal\uc_payment\PaymentMethodPluginInterface The payment method plugin.
Overrides PaymentReceiptInterface::getMethod
File
- payment/
uc_payment/ src/ Entity/ PaymentReceipt.php, line 95
Class
- PaymentReceipt
- Defines the payment receipt entity class.
Namespace
Drupal\uc_payment\EntityCode
public function getMethod() {
return \Drupal::service('plugin.manager.uc_payment.method')
->createInstance($this
->get('method')->value);
}