Skip to content

Commit de24c9e

Browse files
Automated commit message (paypal#9)
Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
1 parent 4bc534d commit de24c9e

File tree

525 files changed

+2566
-2566
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

525 files changed

+2566
-2566
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Getting Started with Paypal Server SDK
2+
# Getting Started with PayPal Server SDK
33

44
## Introduction
55

@@ -27,23 +27,23 @@ Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://d
2727
Run the following command to install the package and automatically add the dependency to your composer.json file:
2828

2929
```php
30-
composer require "paypal/paypal-server-sdk:0.5.2"
30+
composer require "paypal/paypal-server-sdk:0.6.0"
3131
```
3232

3333
Or add it to the composer.json file manually as given below:
3434

3535
```php
3636
"require": {
37-
"paypal/paypal-server-sdk": "0.5.2"
37+
"paypal/paypal-server-sdk": "0.6.0"
3838
}
3939
```
4040

4141
You can also view the package at:
42-
https://packagist.org/packages/paypal/paypal-server-sdk#0.5.2
42+
https://packagist.org/packages/paypal/paypal-server-sdk#0.6.0
4343

4444
## Initialize the API Client
4545

46-
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/client.md)
46+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/client.md)
4747

4848
The following parameters are configurable for the API Client:
4949

@@ -59,13 +59,13 @@ The following parameters are configurable for the API Client:
5959
| `retryOnTimeout` | `bool` | Whether to retry on request timeout.<br>*Default*: `true` |
6060
| `httpStatusCodesToRetry` | `array` | Http status codes to retry against.<br>*Default*: `408, 413, 429, 500, 502, 503, 504, 521, 522, 524` |
6161
| `httpMethodsToRetry` | `array` | Http methods to retry against.<br>*Default*: `'GET', 'PUT'` |
62-
| `loggingConfiguration` | [`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/logging-configuration-builder.md) | Represents the logging configurations for API calls |
63-
| `clientCredentialsAuth` | [`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md) | The Credentials Setter for OAuth 2 Client Credentials Grant |
62+
| `loggingConfiguration` | [`LoggingConfigurationBuilder`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md) | Represents the logging configurations for API calls |
63+
| `clientCredentialsAuth` | [`ClientCredentialsAuth`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md) | The Credentials Setter for OAuth 2 Client Credentials Grant |
6464

6565
The API client can be initialized as follows:
6666

6767
```php
68-
$client = PaypalServerSDKClientBuilder::init()
68+
$client = PaypalServerSdkClientBuilder::init()
6969
->clientCredentialsAuthCredentials(
7070
ClientCredentialsAuthCredentialsBuilder::init(
7171
'OAuthClientId',
@@ -105,20 +105,20 @@ The SDK can be configured to use a different environment for making API calls. A
105105

106106
This API uses the following authentication schemes.
107107

108-
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md)
108+
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/auth/oauth-2-client-credentials-grant.md)
109109

110110
## List of APIs
111111

112-
* [Orders](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/controllers/orders.md)
113-
* [Payments](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/controllers/payments.md)
114-
* [Vault](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/controllers/vault.md)
112+
* [Orders](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/orders.md)
113+
* [Payments](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/payments.md)
114+
* [Vault](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/controllers/vault.md)
115115

116116
## Classes Documentation
117117

118-
* [ApiException](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/api-exception.md)
119-
* [HttpRequest](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/http-request.md)
120-
* [HttpResponse](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/http-response.md)
121-
* [LoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/logging-configuration-builder.md)
122-
* [RequestLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/request-logging-configuration-builder.md)
123-
* [ResponseLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.5.2/doc/response-logging-configuration-builder.md)
118+
* [ApiException](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/api-exception.md)
119+
* [HttpRequest](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/http-request.md)
120+
* [HttpResponse](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/http-response.md)
121+
* [LoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/logging-configuration-builder.md)
122+
* [RequestLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/request-logging-configuration-builder.md)
123+
* [ResponseLoggingConfigurationBuilder](https://www.github.com/paypal/PayPal-PHP-Server-SDK/tree/0.6.0/doc/response-logging-configuration-builder.md)
124124

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
},
2323
"autoload": {
2424
"psr-4": {
25-
"PaypalServerSDKLib\\": "src/"
25+
"PaypalServerSdkLib\\": "src/"
2626
}
2727
},
2828
"autoload-dev": {
2929
"psr-4": {
30-
"PaypalServerSDKLib\\Tests\\": "tests/"
30+
"PaypalServerSdkLib\\Tests\\": "tests/"
3131
}
3232
},
3333
"scripts": {

doc/auth/oauth-2-client-credentials-grant.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Documentation for accessing and setting credentials for Oauth2.
2727
You must initialize the client with *OAuth 2.0 Client Credentials Grant* credentials as shown in the following code snippet. This will fetch the OAuth token automatically when any of the endpoints, requiring *OAuth 2.0 Client Credentials Grant* autentication, are called.
2828

2929
```php
30-
$client = PaypalServerSDKClientBuilder::init()
30+
$client = PaypalServerSdkClientBuilder::init()
3131
->clientCredentialsAuthCredentials(
3232
ClientCredentialsAuthCredentialsBuilder::init(
3333
'OAuthClientId',
@@ -46,7 +46,7 @@ Your application can also manually provide an OAuthToken using the setter `oAuth
4646
Whenever the OAuth Token gets updated, the provided callback implementation will be executed. For instance, you may use it to store your access token whenever it gets updated.
4747

4848
```php
49-
$client = PaypalServerSDKClientBuilder::init()
49+
$client = PaypalServerSdkClientBuilder::init()
5050
->clientCredentialsAuthCredentials(
5151
ClientCredentialsAuthCredentialsBuilder::init(
5252
'OAuthClientId',
@@ -68,7 +68,7 @@ $client = PaypalServerSDKClientBuilder::init()
6868
To authorize a client using a stored access token, set up the `oAuthTokenProvider` in `ClientCredentialsAuthCredentialsBuilder` along with the other auth parameters before creating the client:
6969

7070
```php
71-
$client = PaypalServerSDKClientBuilder::init()
71+
$client = PaypalServerSdkClientBuilder::init()
7272
->clientCredentialsAuthCredentials(
7373
ClientCredentialsAuthCredentialsBuilder::init(
7474
'OAuthClientId',

doc/client.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ The following parameters are configurable for the API Client:
2121
The API client can be initialized as follows:
2222

2323
```php
24-
$client = PaypalServerSDKClientBuilder::init()
24+
$client = PaypalServerSdkClientBuilder::init()
2525
->clientCredentialsAuthCredentials(
2626
ClientCredentialsAuthCredentialsBuilder::init(
2727
'OAuthClientId',
@@ -46,7 +46,7 @@ API calls return an `ApiResponse` object that includes the following fields:
4646
| `getHeaders` | Headers of the HTTP response as a Hash |
4747
| `getResult` | The deserialized body of the HTTP response as a String |
4848

49-
## Paypal Server SDK Client
49+
## PayPal Server SDK Client
5050

5151
The gateway for the SDK. This class acts as a factory for the Controllers and also holds the configuration of the SDK.
5252

0 commit comments

Comments
 (0)