From c7a4210ede1213cd34d516092355c02c07b4814a Mon Sep 17 00:00:00 2001 From: Danilo Elias Date: Wed, 11 Aug 2021 10:45:31 -0300 Subject: [PATCH 1/2] Fix merchant services error in payment with gateway mode Fix error when creating a payment with merchant services in gateway mode --- src/MercadoPago/Entities/Shared/Payment.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/MercadoPago/Entities/Shared/Payment.php b/src/MercadoPago/Entities/Shared/Payment.php index 926d2c65..60567d34 100755 --- a/src/MercadoPago/Entities/Shared/Payment.php +++ b/src/MercadoPago/Entities/Shared/Payment.php @@ -562,6 +562,20 @@ class Payment extends Entity */ protected $point_of_interaction; + /** + * payment_method_option_id + * @var string + * @Attribute() + */ + protected $payment_method_option_id; + + /** + * merchant_services + * @var object + * @Attribute() + */ + protected $merchant_services; + /** * refund * @param int $amount From a5661938451d8b1058ecf0d883c3aae84b26d719 Mon Sep 17 00:00:00 2001 From: Danilo Elias Date: Wed, 11 Aug 2021 11:06:19 -0300 Subject: [PATCH 2/2] Increase version to 2.4.2 --- README.md | 2 +- composer.json | 2 +- docs/classes/MercadoPago-Version.html | 2 +- src/MercadoPago/Version.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index b6650d4f..21e4ebec 100755 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ First time using Mercado Pago? Create your [Mercado Pago account](https://www.me 1. Download [Composer](https://getcomposer.org/doc/00-intro.md) if not already installed 2. On your project directory run on the command line -`composer require "mercadopago/dx-php:2.4.1"` for PHP7 or `composer require "mercadopago/dx-php:1.12.0"` for PHP5.6. +`composer require "mercadopago/dx-php:2.4.2"` for PHP7 or `composer require "mercadopago/dx-php:1.12.1"` for PHP5.6. 3. Copy the access_token in the [credentials](https://www.mercadopago.com/mlb/account/credentials) section of the page and replace YOUR_ACCESS_TOKEN with it. diff --git a/composer.json b/composer.json index d4d4ed14..da8fd297 100755 --- a/composer.json +++ b/composer.json @@ -4,7 +4,7 @@ "type": "library", "homepage": "https://github.com/mercadopago/sdk-php", "license": "MIT", - "version": "2.4.1", + "version": "2.4.2", "config": { "platform": { "php": "7.1" diff --git a/docs/classes/MercadoPago-Version.html b/docs/classes/MercadoPago-Version.html index 24b2a4ac..741ef48f 100644 --- a/docs/classes/MercadoPago-Version.html +++ b/docs/classes/MercadoPago-Version.html @@ -168,7 +168,7 @@

public static mixed $_VERSION - = '2.4.1' + = '2.4.2' diff --git a/src/MercadoPago/Version.php b/src/MercadoPago/Version.php index e0f69eba..57b81e85 100755 --- a/src/MercadoPago/Version.php +++ b/src/MercadoPago/Version.php @@ -4,5 +4,5 @@ class Version { public static - $_VERSION = '2.4.1'; + $_VERSION = '2.4.2'; }