Commit d7b5dd97 authored by Maikel Koek's avatar Maikel Koek

B: Fixed return of beforePlugin

parent 8d705218
...@@ -52,7 +52,7 @@ class PaymentVaultDeleteToken ...@@ -52,7 +52,7 @@ class PaymentVaultDeleteToken
public function beforeDelete(\Magento\Vault\Api\PaymentTokenRepositoryInterface $subject, PaymentTokenInterface $paymentToken) public function beforeDelete(\Magento\Vault\Api\PaymentTokenRepositoryInterface $subject, PaymentTokenInterface $paymentToken)
{ {
if (strpos($paymentToken->getPaymentMethodCode(), 'adyen_') !== 0) { if (strpos($paymentToken->getPaymentMethodCode(), 'adyen_') !== 0) {
return $paymentToken; return [$paymentToken];
} }
try { try {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment