use yy format instead of yyyy for card details

This commit is contained in:
Kirill Braslavsky 2021-05-14 14:27:41 +03:00
parent 0a2a571e3e
commit 74d5337bc9
2 changed files with 2 additions and 2 deletions

View file

@ -87,7 +87,7 @@ class CreditCardRenderer {
}, },
expirationDate: { expirationDate: {
selector: '#ppcp-credit-card-gateway-card-expiry', selector: '#ppcp-credit-card-gateway-card-expiry',
placeholder: this.defaultConfig.hosted_fields.labels.mm_yyyy, placeholder: this.defaultConfig.hosted_fields.labels.mm_yy,
} }
} }
}).then(hostedFields => { }).then(hostedFields => {

View file

@ -683,7 +683,7 @@ class SmartButton implements SmartButtonInterface {
'labels' => array( 'labels' => array(
'credit_card_number' => '', 'credit_card_number' => '',
'cvv' => '', 'cvv' => '',
'mm_yyyy' => __( 'MM/YY', 'woocommerce-paypal-payments' ), 'mm_yy' => __( 'MM/YY', 'woocommerce-paypal-payments' ),
'fields_not_valid' => __( 'fields_not_valid' => __(
'Unfortunatly, your credit card details are not valid.', 'Unfortunatly, your credit card details are not valid.',
'woocommerce-paypal-payments' 'woocommerce-paypal-payments'