Skip to content

Commit

Permalink
Merge pull request #358 from mercadopago/release/7.3.5
Browse files Browse the repository at this point in the history
Release v7.3.5
  • Loading branch information
DouglasCorreiaMeli authored Apr 17, 2024
2 parents a7f4a1f + 53988af commit 4136508
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 15 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ 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).

## [7.3.5] - 2024-04-17
### Fixed:
- Checked field on checkout now validated.
- Rollback SDK dependency.

## [7.3.4] - 2024-04-15
### Fixed:
- Thankyou page redirect for PIX and Ticket Payments working again.
Expand Down
2 changes: 1 addition & 1 deletion assets/js/checkouts/custom/mp-custom-checkout.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ jQuery(document).on('updated_checkout', function () {
const checkoutCustomPaymentMethodElement = document.getElementById('payment_method_woo-mercado-pago-custom');

// Checkout Custom is not selected, so we can stop checking
if (checkoutCustomPaymentMethodElement || checkoutCustomPaymentMethodElement.checked) {
if (checkoutCustomPaymentMethodElement && checkoutCustomPaymentMethodElement.checked) {
if (cardFormMounted) {
cardForm.unmount();
}
Expand Down
2 changes: 1 addition & 1 deletion assets/js/checkouts/custom/mp-custom-checkout.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions changelog.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG:
== Changelog ==

= v7.3.5 (17/04/2024) =
* Fixed:
- Checked field on checkout now validated.
- Rollback SDK dependency.

= v7.3.4 (15/04/2024) =
* Changed:
- Thankyou page redirect for PIX and Ticket Payments working again.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "woocommerce-mercadopago",
"description": "Woocommerce MercadoPago Payment Gateway",
"version": "7.3.4",
"version": "7.3.5",
"main": "main.js",
"repository": {
"type": "git",
Expand Down
9 changes: 4 additions & 5 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Contributors:
Tags: ecommerce, mercadopago, woocommerce
Requires at least: 6.3
Tested up to: 6.4
Tested up to: 6.5
Requires PHP: 7.4
Stable tag: 7.3.4
Stable tag: 7.3.5
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Expand Down Expand Up @@ -137,8 +137,7 @@ Check out our <a href="https://www.mercadopago.com.br/developers/pt/plugins_sdks
== Changelog ==

* Fixed:
- Thankyou page redirect for PIX and Ticket Payments working again.
- Prevents type error on checkout screen due to amount values.
- Removed console error message when custom checkout is not enabled.
- Checked field on checkout now validated.
- Rollback SDK dependency.

[See changelog for all versions](https://github.com/mercadopago/cart-woocommerce/blob/main/CHANGELOG.md).
4 changes: 2 additions & 2 deletions src/Gateways/AbstractGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,14 +462,14 @@ public function loadMelidataStoreScripts(): void
*/
public function processReturnFail(\Exception $e, string $message, string $source, array $context = [], bool $notice = false): array
{
$this->mercadopago->logs->file->error($e->getMessage(), $source, $context);
$this->mercadopago->logs->file->error('Message: ' . $e->getMessage() . ' \n\n\n' . 'Stackstrace: ' . $e->getTraceAsString() . ' \n\n\n', $source, $context);

$errorMessages = [
"Invalid test user email" => $this->mercadopago->storeTranslations->commonMessages['invalid_users'],
"Invalid users involved" => $this->mercadopago->storeTranslations->commonMessages['invalid_users'],
"Invalid operators users involved" => $this->mercadopago->storeTranslations->commonMessages['invalid_operators'],
"exception" => $this->mercadopago->storeTranslations->buyerRefusedMessages['buyer_default'],
"400" => $this->mercadopago->storeTranslations->commonMessages['buyer_default'],
"400" => $this->mercadopago->storeTranslations->buyerRefusedMessages['buyer_default'],
];

foreach ($errorMessages as $keyword => $replacement) {
Expand Down
1 change: 0 additions & 1 deletion src/Gateways/CreditsGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,6 @@ public function renderCreditsBanner(): void
'banner_link' => $this->storeTranslations['banner_link'],
'modal_title' => $this->storeTranslations['modal_title'],
'modal_subtitle' => $this->storeTranslations['modal_subtitle'],
'modal_how_to' => $this->storeTranslations['modal_how_to'],
'modal_step_1' => $this->storeTranslations['modal_step_1'],
'modal_step_2' => $this->storeTranslations['modal_step_2'],
'modal_step_3' => $this->storeTranslations['modal_step_3'],
Expand Down
2 changes: 1 addition & 1 deletion src/Notification/CoreNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function getSdkInstance(): Sdk
$integratorId = $this->store->getIntegratorId();
$accessToken = $this->seller->getCredentialsAccessToken();

return new Sdk($accessToken, $platformId, $productId, $integratorId, $this->seller->getCredentialsPublicKey());
return new Sdk($accessToken, $platformId, $productId, $integratorId);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Transactions/AbstractTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function getSdkInstance(): Sdk
$productId = Device::getDeviceProductId();
$integratorId = $this->mercadopago->storeConfig->getIntegratorId();

return new Sdk($accessToken, $platformId, $productId, $integratorId, $this->mercadopago->sellerConfig->getCredentialsPublicKey());
return new Sdk($accessToken, $platformId, $productId, $integratorId);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/WoocommerceMercadoPago.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class WoocommerceMercadoPago
/**
* @const
*/
private const PLUGIN_VERSION = '7.3.4';
private const PLUGIN_VERSION = '7.3.5';

/**
* @const
Expand Down
2 changes: 1 addition & 1 deletion woocommerce-mercadopago.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Plugin Name: Mercado Pago
* Plugin URI: https://github.com/mercadopago/cart-woocommerce
* Description: Configure the payment options and accept payments with cards, ticket and money of Mercado Pago account.
* Version: 7.3.4
* Version: 7.3.5
* Author: Mercado Pago
* Author URI: https://developers.mercadopago.com/
* Text Domain: woocommerce-mercadopago
Expand Down

0 comments on commit 4136508

Please sign in to comment.