Skip to content

Commit

Permalink
Fix 'card' payment method actually being of type 'scheme'
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinElst committed Oct 23, 2024
1 parent 17fdb20 commit 97ec2f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Model/PaymentMethod/Filter/AdyenConfigured.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ use Adyen\Hyva\Magewire\Payment\Method\CreditCard;
creditCardHandler.setCreditCardType(creditCardHandler.getCcCodeByAltCode(state.brand));
},
name: '<?= $escaper->escapeJs($magewire->getConfiguration()->getValue('adyenCc/title')) ?>',
type: "card",
type: "scheme",
code: methodCode
};

Expand Down

0 comments on commit 97ec2f0

Please sign in to comment.