Skip to content

Commit

Permalink
Release v6.0.0 (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
GiovanniCavallari authored Jun 27, 2022
1 parent 455541a commit b54024b
Show file tree
Hide file tree
Showing 82 changed files with 26,453 additions and 19,492 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,3 @@ node_modules
.idea
.idea/
vendor/
package-lock.json
31 changes: 31 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
#!/bin/sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

export readonly husky_skip_init=1
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

exit $exitCode
fi
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [6.0.0] - 2022-06-22

### Added
- Added ideal checkout template
- Added secure inputs for Checkout Custom

### Changes
- Updated melidata script to load only on plugin pages

## [5.8.0] - 2022-06-07

### Added
Expand All @@ -16,23 +25,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [5.7.6] - 2022-04-19

### Changed Bug fixes

- Adjusted IPN notification to recognize discount coupon
- Added coupon information in order details
- Changed default value of checkout ticket date_expiration

## [5.7.5] - 2022-03-31

### Changed Bug fixes

- Instance a non-static class to call a method (Fatal error on PHP 8)

## [5.7.4] - 2022-02-25

### Changed Bug fixes

- Changed php constant

## [5.7.3] - 2022-02-16

### Changed Bug fixes

- fixed cho pro excluded payments
- fixed cho ticket excluded payments
- validate if has a checkout prod set all to prod
Expand All @@ -41,11 +54,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [5.7.2] - 2022-02-14

### Changed Bug fixes

- Using Jquery from wp.ajax

## [5.7.1] - 2022-02-14

### Changed Bug fixes

- Adjusted js and css load of mercado pago pool
- Repass all active gateways

Expand Down
21 changes: 6 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,14 @@

The Mercado Pago payments for WooCommerce plugin allows you to expand the functionalities of your online store and offer a unique payment experience for your customers.

## Note
<br/>

Attention: On 7/13/21, WooCommerce notified its customers that some of its versions are vulnerable. The necessary fixes were already made in the last update. Therefore, it is **very important that your store has the latest version of WooCommerce updated** to prevent exposure of sensitive information.
## Attention / Atención / Atenção

More information on the [WooCommerce blog.](https://woocommerce.com/pt-br/posts/critical-vulnerability-detected-july-2021/)

## Nota

Em 13/07/21, o WooCommerce notificou seus clientes de que algumas de suas versões estão vulneráveis. As correções necessárias já foram feitas na última atualização. Por isso, é **muito importante que sua loja esteja com a última versão do WooCommerce atualizada** para prevenir a exposição de informações sensíveis.

Mais informações no [WooCommerce blog.](https://woocommerce.com/pt-br/posts/critical-vulnerability-detected-july-2021/)

## Nota

Aviso: El 13/07/21, WooCommerce notificó a sus clientes que algunas de sus versiones resultan vulnerables. Las correcciones necesarias ya se han realizado en la última actualización. Por lo tanto, es **muy importante que tu tienda tenga la última versión de WooCommerce actualizada** para evitar la exposición de información sensible.

Más información en el [WooCommerce blog.](https://woocommerce.com/pt-br/posts/critical-vulnerability-detected-july-2021/)
| Note (English) | Nota (Español) | Nota (Português) |
| :------------ | :------------- | :--------------- |
|<br/> **Warning about v6.0.0**: when updating, if you have made custom layout changes to your checkout, it is possible that some of those customizations become misconfigured. If you have a separate store environment just for testing, please update there first in order to visualize and test the changes. | <br/> **Advertencia sobre la v6.0.0**: al actualizar, si hiciste cambios de diseño personalizados en tu checkout, es posible que algunas de estas customizaciones se desconfiguren. Si tenés una tienda en un entorno separado sólo para pruebas, actualizalo ahí primero para previsualizar y probar los cambios. | <br/>**Aviso sobre a v6.0.0**: ao atualizar, caso você tenha feito mudanças de layout customizadas no seu checkout, é possível que algumas dessas customizações se desconfigurem. Se você tiver uma loja em ambiente separado só para testes, atualize por lá antes para visualizar e testar as alterações.
|<br/>On 7/13/21, WooCommerce notified its customers that some of its versions are vulnerable. The necessary fixes were already made in the last update. Therefore, it is **very important that your store has the latest version of WooCommerce updated** to prevent exposure of sensitive information. <br/> <br/> More information on the [WooCommerce blog.](https://woocommerce.com/pt-br/posts/critical-vulnerability-detected-july-2021/) | <br/> El 13/07/21, WooCommerce notificó a sus clientes que algunas de sus versiones resultan vulnerables. Las correcciones necesarias ya se han realizado en la última actualización. Por lo tanto, es **muy importante que tu tienda tenga la última versión de WooCommerce actualizada** para evitar la exposición de información sensible. <br/> <br/> Más información en el [WooCommerce blog.](https://woocommerce.com/pt-br/posts/critical-vulnerability-detected-july-2021/) | <br/> Em 13/07/21, o WooCommerce notificou seus clientes de que algumas de suas versões estão vulneráveis. As correções necessárias já foram feitas na última atualização. Por isso, é **muito importante que sua loja esteja com a última versão do WooCommerce atualizada** para prevenir a exposição de informações sensíveis. <br/> <br/> Mais informações no [WooCommerce blog.](https://woocommerce.com/pt-br/posts/critical-vulnerability-detected-july-2021/) |

## Documentation in English

Expand Down
1 change: 1 addition & 0 deletions assets/css/mp-plugins-components.css

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/css/mp-plugins-components.min.css

Large diffs are not rendered by default.

Binary file added assets/images/blue-check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/chefron-down.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/chefron-up.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/cho-pro-redirect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/mercadopago.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/pix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/ticket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/icons/ticket_mlb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/mercado-credito.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/mp_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/narciso/blue-check.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/narciso/cho-pro-redirect.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/narciso/mp_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/narciso/pix-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified assets/images/pix.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added assets/images/purple_card.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion assets/js/credit-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -896,4 +896,4 @@
return mercadoPagoFormHandler();
});
});
})(jQuery);
})(jQuery);
1 change: 1 addition & 0 deletions assets/js/mp-plugins-components.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions assets/js/mp-plugins-components.min.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions assets/js/securityFields/checkoutSecurityFields.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
var form = document.querySelector("form[id=checkout]");

if (form) {
jQuery(document).on("updated_checkout", function () {
if (cardFormMounted) cardForm.unmount();
init_cardForm();
});
}
1 change: 1 addition & 0 deletions assets/js/securityFields/checkoutSecurityFields.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 27 additions & 0 deletions assets/js/securityFields/elements/checkoutElements.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const CheckoutElements = {
cardTokenId: "#cardTokenId",
cardInstallments: "#cardInstallments",
fcCardholderName: "#form-checkout__cardholderName",
fcCardNumberContainer: "#form-checkout__cardNumber-container",
fcCardExpirationDateContainer: "#form-checkout__expirationDate-container",
fcIdentificationNumber: "#form-checkout__identificationNumber",
fcIdentificationNumberContainer: "#form-checkout__identificationNumber-container",
fcInputTableContainer: "[data-cy=input-table-list]",
fcInstallments: "#form-checkout__installments",
fcSecurityNumberContainer: "#form-checkout__securityCode-container",
mpCardNumber: "mp-card-number",
mpCardholderName: "mp-card-holder-name",
mpDocumentContainer: "#mp-doc-div",
mpExpirationDate: "mp-expiration-date",
mpInputRadio: ".mp-input-radio-radio",
mpInputTaxCft: "#mp-checkout-custom-box-input-tax-cft",
mpInstallmentsContainer: "#mp-checkout-custom-installments-container",
mpInstallments: "#mp-checkout-custom-installments",
mpIssuerContainer: "#mp-checkout-custom-issuers-container",
mpSecurityCode: "mp-security-code",
mpTaxCftText: "#mp-checkout-custom-tax-cft-text",
mpTaxTeaText: "#mp-checkout-custom-tax-tea-text",
mpIdentificationNumber: "mp-doc-number",
mpSecurityCodeInfo: "#mp-security-code-info",
paymentMethodId: "#paymentMethodId",
};
1 change: 1 addition & 0 deletions assets/js/securityFields/elements/checkoutElements.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b54024b

Please sign in to comment.