Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Changed validation of card number to accept amex.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmatsuoka committed Apr 9, 2019
1 parent 9bae6cd commit bd90037
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
}
],
"type": "magento2-component",
"version": "3.1.0",
"version": "3.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/MercadoPago/Core/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "mercadopago/module-core",
"description": "Mercado Pago payment method module",
"type": "magento2-module",
"version": "3.1.0",
"version": "3.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
2 changes: 1 addition & 1 deletion src/MercadoPago/Core/etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="MercadoPago_Core" setup_version="3.1.0">
<module name="MercadoPago_Core" setup_version="3.1.1">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
<div id="mercadopago-form">
<div class="mp-box-inputs mp-col-100">
<label for="cardNumber"> <!-- ko i18n: 'Credit card number'--><!-- /ko --> <em>*</em></label>
<input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off" maxlength="19" minlength="16" required data-bind="event: {
<input type="text" id="cardNumber" data-checkout="cardNumber" autocomplete="off" maxlength="19" minlength="15" required data-bind="event: {
blur: validateCreditCardNumber
}"/>
<span class="mp-error" id="mp-error-205" data-main="#cardNumber"> <!-- ko i18n: 'Parameter cardNumber can not be null/empty'--><!-- /ko --> </span>
Expand Down

0 comments on commit bd90037

Please sign in to comment.