Skip to content

Commit

Permalink
Fix bug and documentation issues (#13)
Browse files Browse the repository at this point in the history
* Fix documentation typos

* Rename file so as to fix #11

* Add contributing.md file

* Version bump to 1.0.2
  • Loading branch information
lyubomir-sumup authored Aug 28, 2019
1 parent 0d68ae2 commit b294963
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
We do not accept pull requests
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"description": "SumUp eCom SDK for PHP",
"type": "library",
"license": "proprietary",
"version": "1.0.1",
"version": "1.0.2",
"keywords": ["sumup", "sdk", "payment processing", "ecommerce", "payment", "checkout"],
"homepage": "https://developer.sumup.com",
"authors": [
Expand Down
10 changes: 5 additions & 5 deletions docs/HowToAuthorize.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $sumup = new \SumUp\SumUp([
'app_id' => 'YOUR-CLIENT-ID',
'app_secret' => 'YOUR-CLIENT-SECRET',
'grant_type' => 'authorization_code',
'scope' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'scopes' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'code' => 'YOUR-AUTHORIZATION-CODE'
]);
$accessToken = $sumup->getAccessToken();
Expand All @@ -38,7 +38,7 @@ $sumup = new \SumUp\SumUp([
'app_id' => 'YOUR-CLIENT-ID',
'app_secret' => 'YOUR-CLIENT-SECRET',
'grant_type' => 'client_credentials',
'scope' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly']
'scopes' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly']
]);
$accessToken = $sumup->getAccessToken();
$value = $accessToken->getValue();
Expand All @@ -55,7 +55,7 @@ $sumup = new \SumUp\SumUp([
'app_id' => 'YOUR-CLIENT-ID',
'app_secret' => 'YOUR-CLIENT-SECRET',
'grant_type' => 'password',
'scope' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'scopes' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'username' => 'YOUR-SUMUP-USERNAME',
'password' => 'YOUR-SUMUP-PASSWORD'
]);
Expand All @@ -71,7 +71,7 @@ Here is how to get a **new access token from a refresh token**:
$sumup = new \SumUp\SumUp([
'app_id' => 'YOUR-CLIENT-ID',
'app_secret' => 'YOUR-CLIENT-SECRET',
'scope' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'scopes' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'refresh_token' => 'REFRESH-TOKEN'
]);
// you need to call the method `refreshToken()` to get a new access token
Expand All @@ -89,7 +89,7 @@ If you already have a valid access token you can reuse it like this:
$sumup = new \SumUp\SumUp([
'app_id' => 'YOUR-CLIENT-ID',
'app_secret' => 'YOUR-CLIENT-SECRET',
'scope' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'scopes' => ['payments', 'transactions.history', 'user.app-settings', 'user.profile_readonly'],
'access_token' => 'VALID-ACCESS-TOKEN'
]);
```
Expand Down
File renamed without changes.

0 comments on commit b294963

Please sign in to comment.