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

Commit

Permalink
v3.14.1 (#188)
Browse files Browse the repository at this point in the history
* feat(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* fix(PPWP-377): unified calls

* added payment places method

* comments removed

* refactored access token validation

* fixed ternary if structure

* fixed instantiation of access token

* 🐛 Fix the PR cover checker when there is no test (#189)

This fixes an issue that is workflow failure when the pull request does not contain tests and Added hotfix branch filter to check tests

* feat(PPWP-421): paycash front-end

* feat(PPWP-422): paycash admin

* fix(helper): 🐛 fixed float to int convertion

* feat(bin): ✨ new command sync with container

* improv: init tests

* improv: changing chmod command

* build: 📦 new patch version of mercardo pago for magento 2 v3.12.3

* getMercadoPagoPaymentMethods testing

* fix(ppwp-337): fixing exception testing

* testing config provider and api

* testing PaymentMethodsTicket

* feat(ppwp-377): testing custom config provider

* refactored constants

* refactored model test classes

* refactored helper test classes

* added annotation for Code Coverage Ignore

* fixed test variables

* fixed html structure of ticket

* feat(ppwp-377): adding metadata payment_option_id

* fixing data tests

* removed exception to access token

* hotfix(PLUG-1533): fixing refund error handling

* fixing pr coverage checker

* testing pr coverage checker

* fixing pr coverage checker

* hotfix: fixed js - undefined variable

* feat(PPWP-569): initial commit

* build: 📦 new minor version of mercardo pago for magento 2 v3.13.0

* build(v3.13.0): 📦 updated readme

* expiration date mask and validations

* PPWP-569: inserted translations for titles

* PPWP-569: added space between fields

* improv(PPWP-611): dinamically validating bank transfer on admin page

* implementing cache

* PPWP-611: payment unit tests

* PPWP-611: fixed abstractElementMock

* fix(wallet button): 🐛 create order even with cho pro disabled

* fixing cache

* separating cache values with constants

* PPWP-611: refactored test directory

* PPWP-570: added translation

* PPWP-569: inserted style in title

* PPWP-569: fixed cache for new installs

* PPWP-569: fixed cache for new installs

* feature(ppwp-630): new front-end definitions

* removing cache from bank_transfer validation

* fixing payment fieldset and removing debit text

* improv(ppwp-531): adding mlu to available lists

* adding payment methods validation using API

* removing old validation

* improving cache and applying rules to other checkouts

* fixing pix rules

* disabling invalid payments

* clearing config activation flag caching

* testing new methods

* fixing cache code coverage

* fixing observer code coverage

* fixing exception syntax

* code enhancement

* fixing prefix issue

* fix(ticket): 🐛 changed str_contains to strpos

* build(v3.14.0): 📦 updated version files and changelog

* build(v3.14.0): 📦 updated changelog

* fix: treating paymentId on disablePayment function

* Upgrade New Logo MP Magento 2

* hotfix: prevent "missing required argument $data" exception (#187)

Co-authored-by: Ivan Augusto <[email protected]>

* build(v3.14.1): 📦 new version v3.14.1

* build(v3.14.1): 📦 updated mercado pago's minilogo image

Co-authored-by: Gustavo Brito <[email protected]>
Co-authored-by: sleaof <[email protected]>
Co-authored-by: Douglas <[email protected]>
Co-authored-by: hugodamm <[email protected]>
Co-authored-by: Code Slicer <[email protected]>
Co-authored-by: Ivan Augusto <[email protected]>
Co-authored-by: Hugo Damm <[email protected]>
  • Loading branch information
8 people authored Jan 11, 2022
1 parent a697806 commit e3f0933
Show file tree
Hide file tree
Showing 15 changed files with 41 additions and 16 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ 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).

## [3.14.1] - 2022-01-11

### Fixed
- Updated Mercado Pago's logos
- Fixed Payment Observer parameters order

## [3.14.0] - 2022-01-04

### Added
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<p align="center">
<a href="https://www.mercadopago.com/">
<img src="https://http2.mlstatic.com/ui/navigation/5.3.7/mercadopago/[email protected]" height="80" width="auto" alt="MercadoPago">
<img src="https://http2.mlstatic.com/ui/navigation/5.18.4/mercadopago/[email protected]" height="80" width="auto" alt="MercadoPago">
</a>
</p>

# Magento 2 - Mercado Pago Module (v3.14.0)
# Magento 2 - Mercado Pago Module (v3.14.1)

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

Expand Down
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-module",
"version": "3.14.0",
"version": "3.14.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
7 changes: 7 additions & 0 deletions src/MercadoPago/Core/Block/AbstractSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,4 +219,11 @@ public function getCheckoutUrl()
$this->persistCartSession();
return $this->getUrl('checkout', ['_secure' => true]);
} //end getReOrderUrl()

/**
* @return string
*/ public function getLogoMP()
{
return $this->_assetRepo->getUrl('MercadoPago_Core::images/desktop-logo-mercadopago.png');
} //end getLogoMP()
} //end class
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,23 @@ class Payment extends Fieldset
{

/**
* checkout types
* Checkout Custom Card
*/
const CHECKOUT_CUSTOM_CARD = 'custom_checkout';

/**
* Checkout Custom Pix
*/
const CHECKOUT_CUSTOM_PIX= 'custom_checkout_pix';

/**
* Checkout Custom Ticket
*/
const CHECKOUT_CUSTOM_TICKET = 'custom_checkout_ticket';

/**
* Checkout Custom Bank Transfer
*/
const CHECKOUT_CUSTOM_BANK_TRANSFER = 'custom_checkout_bank_transfer';

/**
Expand Down Expand Up @@ -72,10 +84,10 @@ class Payment extends Fieldset
* @param ScopeConfigInterface $scopeConfig
* @param Config $configResource
* @param Switcher $switcher
* @param array $data
* @param Data $coreHelper
* @param Cache $cache
* @param TypeLIstInterface $cacheTypeList
* @param TypeListInterface $cacheTypeList
* @param array $data
*/
public function __construct(
Context $context,
Expand All @@ -84,10 +96,10 @@ public function __construct(
ScopeConfigInterface $scopeConfig,
Config $configResource,
Switcher $switcher,
array $data = [],
Data $coreHelper,
Cache $cache,
TypeLIstInterface $cacheTypeList
TypeListInterface $cacheTypeList,
array $data = []
) {
parent::__construct($context, $authSession, $jsHelper, $data);
$this->scopeConfig = $scopeConfig;
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/core",
"description": "Mercado Pago Magento 2 Plugin",
"type": "magento2-module",
"version": "3.14.0",
"version": "3.14.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.14.0">
<module name="MercadoPago_Core" setup_version="3.14.1">
<sequence>
<module name="Magento_Sales"/>
<module name="Magento_Payment"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ $checkoutUrl = $block->escapeUrl($block->getCheckoutUrl());
</div>

<div id="logo-mercadopago" style="margin-top: 40px">
<img src="https://secure.mlstatic.com/components/resources/mp/desktop/css/assets/desktop-logo-mercadopago.png"/>
<img src="<?php echo $block->getLogoMP();?>">
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $paymentResponse = $payment->getAdditionalInformation("paymentResponse");
</div>

<div id="logo-mercadopago">
<img src="https://secure.mlstatic.com/components/resources/mp/desktop/css/assets/desktop-logo-mercadopago.png"/>
<img src="<?php echo $block->getLogoMP();?>">
</div>

<div class="primary button-success">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ $paymentResponse = $payment->getAdditionalInformation("paymentResponse");
</div>

<div id="logo-mercadopago">
<img src="https://secure.mlstatic.com/components/resources/mp/desktop/css/assets/desktop-logo-mercadopago.png"/>
<img src="<?php echo $block->getLogoMP();?>">
</div>

<div class="primary button-success">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ if ($this->checkExistCallback() == false && $this->getRedirectUserStatus()) {
</div>

<div id="logo-mercadopago">
<img src="https://secure.mlstatic.com/components/resources/mp/desktop/css/assets/desktop-logo-mercadopago.png"/>
<img src="<?php echo $block->getLogoMP();?>">
</div>

<div class="primary button-success">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ $link_to_order = '<a href="' . $block->escapeUrl($this->getOrderUrl()) . '">' .


<div id="logo-mercadopago">
<img src="https://secure.mlstatic.com/components/resources/mp/desktop/css/assets/desktop-logo-mercadopago.png"/>
<img src="<?php echo $block->getLogoMP();?>">
</div>

<div class="primary button-success">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ $payment_method = $this->getPaymentMethod();
</div>

<div id="logo-mercadopago">
<img src="https://secure.mlstatic.com/components/resources/mp/desktop/css/assets/desktop-logo-mercadopago.png"/>
<img src="<?php echo $block->getLogoMP();?>">
</div>

<div class="primary button-success">
Expand Down
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 src/MercadoPago/Core/view/frontend/web/images/minilogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e3f0933

Please sign in to comment.