Skip to content

Commit 6350c46

Browse files
authored
Merge pull request #594 from Adyen/feature/AD-476
AD-476 Refactor card payment method name in accelerator
2 parents fa25de7 + 37be472 commit 6350c46

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/WEB-INF/tags/responsive/securedFieldsMethod.tag

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@
2828
<div class="chckt-pm chckt-pm-card js-chckt-pm js-chckt-pm__pm-holder" data-additional-required="" data-pm="card">
2929
<input type="hidden" name="txvariant" value="card">
3030
<div class="chckt-pm__header js-chckt-pm__header">
31-
<adyen:methodSelector name="adyen_cc"/>
31+
<adyen:methodSelector name="card"/>
3232
<span class="chckt-pm__name js-chckt-pm__name"><spring:theme code="payment.method.label.information"/></span>
3333
<span class="chckt-pm__image">
3434
<span id="cardLogos"></span>
3535
<span class="chckt-pm__image-border"></span>
3636
</span>
3737
</div>
3838

39-
<div class="chckt-pm__details js-chckt-pm__details payment_method_details" id="dd_method_adyen_cc">
39+
<div class="chckt-pm__details js-chckt-pm__details payment_method_details" id="dd_method_card">
4040
<div class="chckt-form chckt-form--max-width">
4141
<c:if test="${showComboCard}">
4242
<div class="adyen-checkout__dropdown adyen-checkout__field adyen-checkout__input--large">

adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/WEB-INF/views/responsive/pages/checkout/multi/checkoutSummaryPage.jsp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
paymentMethodConfigs['createBlik'] = callbackConfig
111111
</c:when>
112112
113-
<c:when test="${selectedPaymentMethod eq 'adyen_cc' ||
113+
<c:when test="${selectedPaymentMethod eq 'card' ||
114114
fn:startsWith(selectedPaymentMethod, 'adyen_oneclick_')}">
115115
adyenCheckout.configureButton($("#placeOrderForm-hidden-xs"), true, "hidden-xs");
116116
adyenCheckout.configureButton($("#placeOrderForm-visible-xs"), true, "visible-xs");

adyenv6b2ccheckoutaddon/acceleratoraddon/web/webroot/_ui/responsive/common/js/adyen_form_validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AdyenFormValidator {
1919
return false;
2020
}
2121

22-
if (paymentMethod === "adyen_cc") {
22+
if (paymentMethod === "card") {
2323
if (!this.isValidCard(this.adyenCheckoutHybris.card, this.adyenCheckoutHybris.isDebitCard(), this.adyenCheckoutHybris.isValidBrandType())) {
2424
this.showAlert('Please check your card details.');
2525
this.adyenCheckoutHybris.card.showValidation();

adyenv6core/src/com/adyen/v6/constants/Adyenv6coreConstants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public final class Adyenv6coreConstants extends GeneratedAdyenv6coreConstants {
4040
public static final String TEST_ENV = "test";
4141
public static final String LIVE_ENV = "live";
4242

43-
public static final String PAYMENT_METHOD_CC = "adyen_cc";
43+
public static final String PAYMENT_METHOD_CC = "card";
4444
public static final String PAYMENT_METHOD_EPS = "eps";
4545
public static final String PAYMENT_METHOD_IDEAL = "ideal";
4646
public static final String PAYMENT_METHOD_ONECLICK = "adyen_oneclick_";

adyenv6core/testsrc/com/adyen/v6/commands/AdyenCaptureCommandTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ public void testManualNotSupportedCaptureSuccess() {
157157
public void shouldReturnTrueForSupportedMethods() {
158158
// All supported payment methods
159159
String[] supportedMethods = {
160-
"card", "adyen_cc", "scheme", "paypal", "klarna", "klarna_account", "klarna_paynow", "afterpay_default",
160+
"card", "scheme", "paypal", "klarna", "klarna_account", "klarna_paynow", "afterpay_default",
161161
"afterpaytouch", "clearpay", "ratepay", "afterpay_default", "sepadirectdebit", "applepay",
162162
"paywithgoogle", "googlepay", "amazonpay", "twint"
163163
};

0 commit comments

Comments
 (0)