From 1eb30ba094152743d74fc963fd4956a10718f6ea Mon Sep 17 00:00:00 2001 From: Chagas Date: Wed, 28 Aug 2024 18:11:12 -0300 Subject: [PATCH 1/3] added external-reference in response --- README.md | 2 +- src/MercadoPago/MercadoPagoConfig.php | 2 +- src/MercadoPago/Resources/Payment/PaymentMethodData.php | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 775b3118..6aa908e7 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.7" +composer require "mercadopago/dx-php:3.0.8" ``` > 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 545313f9..d1064736 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.7"; + public static string $CURRENT_VERSION = "3.0.8"; /** @var string Mercado Pago Base URL */ public static string $BASE_URL = "https://api.mercadopago.com"; diff --git a/src/MercadoPago/Resources/Payment/PaymentMethodData.php b/src/MercadoPago/Resources/Payment/PaymentMethodData.php index d342535d..cfe8cfec 100644 --- a/src/MercadoPago/Resources/Payment/PaymentMethodData.php +++ b/src/MercadoPago/Resources/Payment/PaymentMethodData.php @@ -13,6 +13,9 @@ class PaymentMethodData /** Payment rules. */ public array|object|null $rules; + /** External reference ID. */ + public ?string $external_reference_id; + private $map = [ "rules" => "MercadoPago\Resources\Payment\PaymentMethodRules", ]; From db996e441e01d8df1f0341fe21ad3bf0ae035512 Mon Sep 17 00:00:00 2001 From: Chagas Date: Thu, 29 Aug 2024 17:20:25 -0300 Subject: [PATCH 2/3] add more fields --- src/MercadoPago/Resources/Payment/PaymentMethodData.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/MercadoPago/Resources/Payment/PaymentMethodData.php b/src/MercadoPago/Resources/Payment/PaymentMethodData.php index cfe8cfec..8e2b1980 100644 --- a/src/MercadoPago/Resources/Payment/PaymentMethodData.php +++ b/src/MercadoPago/Resources/Payment/PaymentMethodData.php @@ -13,9 +13,15 @@ class PaymentMethodData /** Payment rules. */ public array|object|null $rules; + /** Reference ID. */ + public ?string $reference_id; + /** External reference ID. */ public ?string $external_reference_id; + /** External Resource URL. */ + public ?string $external_resource_url; + private $map = [ "rules" => "MercadoPago\Resources\Payment\PaymentMethodRules", ]; From 152cc9a87ebee035dba9c17295c92dd31456700e Mon Sep 17 00:00:00 2001 From: Chagas Date: Mon, 2 Sep 2024 15:54:47 -0300 Subject: [PATCH 3/3] rollback version --- README.md | 2 +- src/MercadoPago/MercadoPagoConfig.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6aa908e7..775b3118 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.8" +composer require "mercadopago/dx-php:3.0.7" ``` > 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 d1064736..545313f9 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.8"; + public static string $CURRENT_VERSION = "3.0.7"; /** @var string Mercado Pago Base URL */ public static string $BASE_URL = "https://api.mercadopago.com";