diff --git a/composer.json b/composer.json index 905e285..0a883e8 100644 --- a/composer.json +++ b/composer.json @@ -40,4 +40,4 @@ "Unzer\\UnzerPayment\\": "./src/" } } -} \ No newline at end of file +} diff --git a/src/Controller/PaymentController.php b/src/Controller/PaymentController.php index 5ffc6e8..5d2f75a 100644 --- a/src/Controller/PaymentController.php +++ b/src/Controller/PaymentController.php @@ -87,4 +87,15 @@ public function getPaymentList() return $paymentList; } -} \ No newline at end of file + + /** + * Checks if paymentId is an unzer payment + * + * @return bool + * + */ + public function isUnzerPaymentMethod(string $paymentId): bool + { + return UnzerpaymentHelper::getInstance()->isUnzerPaymentMethod($paymentId); + } +} diff --git a/views/twig/extensions/themes/default/page/checkout/inc/payment_other.html.twig b/views/twig/extensions/themes/default/page/checkout/inc/payment_other.html.twig deleted file mode 100644 index 39970c6..0000000 --- a/views/twig/extensions/themes/default/page/checkout/inc/payment_other.html.twig +++ /dev/null @@ -1,18 +0,0 @@ -