diff --git a/Model/PaymentMethod/Filter/AdyenConfigured.php b/Model/PaymentMethod/Filter/AdyenConfigured.php index e5feda3c..0df56a84 100644 --- a/Model/PaymentMethod/Filter/AdyenConfigured.php +++ b/Model/PaymentMethod/Filter/AdyenConfigured.php @@ -74,7 +74,7 @@ private function isMethodAvailable($method, $configuredKeys): bool private function collectMethodCodeWithoutPrefix($methodCode): string { if ($methodCode == CreditCard::METHOD_CC) { - return 'card'; + return 'scheme'; } return substr( diff --git a/Test/Unit/Model/CreditCard/BrandsManagerTest.php b/Test/Unit/Model/CreditCard/BrandsManagerTest.php index 5cad39cf..88ba6c30 100644 --- a/Test/Unit/Model/CreditCard/BrandsManagerTest.php +++ b/Test/Unit/Model/CreditCard/BrandsManagerTest.php @@ -74,11 +74,11 @@ public function inputProviderBrandsManager(): array 'paymentMethodsResponse' => [ 'paymentMethodsResponse' => [ 'paymentMethods' => [ - 'card' => [ + [ 'type' => 'scheme', 'brands' => ['mc', 'visa'], ], - 'somethings_irrelevant' => [ + [ 'type' => 'somethings_irrelevant', 'brands' => [], ], diff --git a/Test/Unit/Model/PaymentMethod/Filter/AdyenConfiguredTest.php b/Test/Unit/Model/PaymentMethod/Filter/AdyenConfiguredTest.php index f98ae7e0..24bb2511 100644 --- a/Test/Unit/Model/PaymentMethod/Filter/AdyenConfiguredTest.php +++ b/Test/Unit/Model/PaymentMethod/Filter/AdyenConfiguredTest.php @@ -45,7 +45,7 @@ public function testExecute() ]; $paymentMethods = [ - 'card' => [], + 'scheme' => [], 'googlepay' => [], 'bmcm' => [] ]; diff --git a/Test/Unit/Model/PaymentMethod/PaymentMethodsTest.php b/Test/Unit/Model/PaymentMethod/PaymentMethodsTest.php index 55be5bfa..bd86ac70 100644 --- a/Test/Unit/Model/PaymentMethod/PaymentMethodsTest.php +++ b/Test/Unit/Model/PaymentMethod/PaymentMethodsTest.php @@ -86,11 +86,11 @@ public function inputProviderPaymentMethods(): array 'paymentMethodsResponse' => [ 'paymentMethodsResponse' => [ 'paymentMethods' => [ - 'card' => [ + [ 'type' => 'scheme', 'brands' => ['mc', 'visa'], ], - 'somethings_else' => [ + [ 'type' => 'something_else', 'brands' => [], ], diff --git a/view/frontend/templates/payment/method-renderer/adyen-cc-method.phtml b/view/frontend/templates/payment/method-renderer/adyen-cc-method.phtml index de383e0d..ed221ea3 100644 --- a/view/frontend/templates/payment/method-renderer/adyen-cc-method.phtml +++ b/view/frontend/templates/payment/method-renderer/adyen-cc-method.phtml @@ -66,7 +66,7 @@ use Adyen\Hyva\Magewire\Payment\Method\CreditCard; creditCardHandler.setCreditCardType(creditCardHandler.getCcCodeByAltCode(state.brand)); }, name: 'escapeJs($magewire->getConfiguration()->getValue('adyenCc/title')) ?>', - type: "card", + type: "scheme", code: methodCode };