Skip to content

Commit

Permalink
Merge pull request #260 from mercadopago/release/2.0.0
Browse files Browse the repository at this point in the history
Update doctrine version
  • Loading branch information
delias-silva authored Apr 6, 2020
2 parents 53de8d7 + aa0ea3d commit 83d9d35
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 16 deletions.
17 changes: 6 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,17 @@ This library provides developers with a simple set of bindings to the Mercado Pa

### PHP Versions Supported:

The SDK supports PHP 5.6 or major
The SDK supports PHP 5.6, 7.1 or major

### Installation

#### Using Composer

1. Download [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-macos) if not already installed
2. Go to your project directory and run `composer require "mercadopago/dx-php:1.2.1"` on the command line.
2. Go to your project directory and run on the command line
`composer require "mercadopago/dx-php:2.0.0"` for PHP7 or `composer require "mercadopago/dx-php:1.8.1"` for PHP5.6.
See the latest version (here)[https://github.com/mercadopago/dx-php/releases].

3. This how your directory structure would look like.
4. Thats all, you have Mercado Pago SDK installed.

Expand All @@ -29,19 +32,11 @@ The SDK supports PHP 5.6 or major

2. Setup your credentials

You have two types of credentials:

* **For API or custom checkout:**
```php
MercadoPago\SDK::setAccessToken("YOUR_ACCESS_TOKEN"); // On Production
MercadoPago\SDK::setAccessToken("YOUR_TEST_ACCESS_TOKEN"); // On Sandbox
```
* **For Web-checkout:**
```php
MercadoPago\SDK::setClientId("YOUR_CLIENT_ID");
MercadoPago\SDK::setClientSecret("YOUR_CLIENT_SECRET");
```


3. Using resource objects.

You can interact with all the resources available in the public API, to this each resource is represented by classes according to the following diagram:
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"type": "library",
"homepage": "https://github.com/mercadopago/dx-php",
"license": "MIT",
"version": "1.8.1",
"version": "2.0.0",
"config": {
"platform": {
"php": "5.6"
"php": "7.1"
}
},
"authors": [
Expand All @@ -22,9 +22,9 @@
}
],
"require": {
"php": ">=5.5.0",
"doctrine/common": "~2.6",
"doctrine/annotations": "1.4"
"php": ">=7.1.0",
"doctrine/common": "^2.6",
"doctrine/annotations": "^1.8"
},
"require-dev": {
"phpunit/phpunit": "^5",
Expand Down

0 comments on commit 83d9d35

Please sign in to comment.