Skip to content

Commit

Permalink
Merge pull request #494 from mercadopago/feature/update-sdk-version
Browse files Browse the repository at this point in the history
Update SDK version to 3.0.2 and update README
  • Loading branch information
rhames07 authored Jan 15, 2024
2 parents 6a962f5 + 5bbb116 commit 532e964
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.1"
composer require "mercadopago/dx-php:3.0.2"
```

> You can also run _composer require "mercadopago/dx-php:2.6.1"_ for PHP7.1 or _composer require "mercadopago/dx-php:1.12.5"_ for PHP5.6.
Expand Down Expand Up @@ -80,7 +80,9 @@ Simple usage looks like:
// Step 6: Handle exceptions
} catch (MPApiException $e) {
echo "Status code: " . $e->getApiResponse()->getStatusCode() . "\n";
echo "Content: " . $e->getApiResponse()->getContent() . "\n";
echo "Content: ";
var_dump($e->getApiResponse()->getContent());
echo "\n";
} catch (\Exception $e) {
echo $e->getMessage();
}
Expand Down Expand Up @@ -139,7 +141,9 @@ try{
} catch (MPApiException $e) {
// Handle API exceptions
echo "Status code: " . $e->getApiResponse()->getStatusCode() . "\n";
echo "Content: " . $e->getApiResponse()->getContent() . "\n";
echo "Content: ";
var_dump($e->getApiResponse()->getContent());
echo "\n";
} catch (\Exception $e) {
// Handle all other exceptions
echo $e->getMessage();
Expand Down
2 changes: 1 addition & 1 deletion src/MercadoPago/MercadoPagoConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
class MercadoPagoConfig
{
/** @var string Mercado Pago SDK version. */
public static string $CURRENT_VERSION = "3.0.1";
public static string $CURRENT_VERSION = "3.0.2";

/** @var string Mercado Pago Base URL */
public static string $BASE_URL = "https://api.mercadopago.com";
Expand Down

0 comments on commit 532e964

Please sign in to comment.