From ecc26c5e372d266ddde801593acf9aa740a4c0f0 Mon Sep 17 00:00:00 2001 From: Rhames Lima Date: Tue, 12 Mar 2024 10:23:47 -0300 Subject: [PATCH 1/3] Update Merchant Order response --- src/MercadoPago/Resources/MerchantOrder/Payer.php | 3 +++ src/MercadoPago/Resources/MerchantOrder/Payment.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/MercadoPago/Resources/MerchantOrder/Payer.php b/src/MercadoPago/Resources/MerchantOrder/Payer.php index 516add4e..28944b6d 100644 --- a/src/MercadoPago/Resources/MerchantOrder/Payer.php +++ b/src/MercadoPago/Resources/MerchantOrder/Payer.php @@ -9,4 +9,7 @@ class Payer /** Payer nickname. */ public ?string $nickname; + + /** Payer email. */ + public ?string $email; } diff --git a/src/MercadoPago/Resources/MerchantOrder/Payment.php b/src/MercadoPago/Resources/MerchantOrder/Payment.php index 51083409..1531b9f4 100644 --- a/src/MercadoPago/Resources/MerchantOrder/Payment.php +++ b/src/MercadoPago/Resources/MerchantOrder/Payment.php @@ -23,7 +23,7 @@ class Payment public ?string $status; /** Gives more detailed information on the current state or rejection cause. */ - public ?string $status_details; + public ?string $status_detail; /** Operation type. */ public ?string $operation_type; From 0f470a07aa74fe14a42ddb7c3387f594e9508626 Mon Sep 17 00:00:00 2001 From: Rhames Lima Date: Tue, 12 Mar 2024 10:29:39 -0300 Subject: [PATCH 2/3] Update SDK version to 3.0.4 --- README.md | 2 +- src/MercadoPago/MercadoPagoConfig.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 382313a7..98fda723 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ First time using Mercado Pago? Create your [Mercado Pago account](https://www.me 2. Install PHP SDK for MercadoPago running in command line: ``` -composer require "mercadopago/dx-php:3.0.3" +composer require "mercadopago/dx-php:3.0.4" ``` > You can also run _composer require "mercadopago/dx-php:2.6.2"_ for PHP7.1 or _composer require "mercadopago/dx-php:1.12.6"_ for PHP5.6. diff --git a/src/MercadoPago/MercadoPagoConfig.php b/src/MercadoPago/MercadoPagoConfig.php index 0956ea18..3d43a7f7 100644 --- a/src/MercadoPago/MercadoPagoConfig.php +++ b/src/MercadoPago/MercadoPagoConfig.php @@ -10,7 +10,7 @@ class MercadoPagoConfig { /** @var string Mercado Pago SDK version. */ - public static string $CURRENT_VERSION = "3.0.3"; + public static string $CURRENT_VERSION = "3.0.4"; /** @var string Mercado Pago Base URL */ public static string $BASE_URL = "https://api.mercadopago.com"; From 70612705c8258b2187292a1fa3715d5c0b352ab6 Mon Sep 17 00:00:00 2001 From: Rhames Lima Date: Tue, 12 Mar 2024 11:58:12 -0300 Subject: [PATCH 3/3] Minor adjustments --- src/MercadoPago/Resources/MerchantOrder/Payment.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MercadoPago/Resources/MerchantOrder/Payment.php b/src/MercadoPago/Resources/MerchantOrder/Payment.php index 1531b9f4..2d7e78f8 100644 --- a/src/MercadoPago/Resources/MerchantOrder/Payment.php +++ b/src/MercadoPago/Resources/MerchantOrder/Payment.php @@ -22,6 +22,9 @@ class Payment /** Payment status. */ public ?string $status; + /** @deprecated deprecated since SDK version 3.0.4. */ + public ?string $status_details; + /** Gives more detailed information on the current state or rejection cause. */ public ?string $status_detail;