paypal-server-sdk 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +2 -2
- data/README.md +33 -18
- data/lib/paypal_server_sdk/controllers/base_controller.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 72e87c0a4a2bbe2a6d2851a6284a7fe4fafd5c2afaedd8e487562c92da9109a2
|
4
|
+
data.tar.gz: dc7d7504f8cabf4e5cf33cff132365324001beaf7e6f9397d7e4ae8010bbc840
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3601590d82e08b09c472677bed7194e64251216ae8fcdd64e52d5bb4910877487399fbe99d41f69ebf015fea49b8d0b86b3e152daedcbfc854b327b21b01486
|
7
|
+
data.tar.gz: 836c7021ec50c5fd8d9026eeb46c92b47736060c3e0e6f6ddc9a32bfc7e2b5b67fed30646e5d6ccc074921d4cc64de4ca5e9d9e2c7767ef186feceaa6fcec783
|
data/LICENSE
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
The PayPal Server SDK is released under the following license:
|
2
2
|
|
3
|
-
|
3
|
+
Copyright (c) 2024 PAYPAL, INC.
|
4
4
|
|
5
|
-
|
5
|
+
SDK LICENSE
|
6
6
|
|
7
7
|
NOTICE TO USER: PayPal, Inc. is providing the Software and Documentation for use under the terms of this Agreement. Any use, reproduction, modification or distribution of the Software or Documentation, or any derivatives or portions hereof, constitutes your acceptance of this Agreement.
|
8
8
|
As used in this Agreement, "PayPal" means PayPal, Inc. "Software" means the software code accompanying this agreement. "Documentation" means the documents, specifications and all other items accompanying this Agreement other than the Software.
|
data/README.md
CHANGED
@@ -3,7 +3,22 @@
|
|
3
3
|
|
4
4
|
## Introduction
|
5
5
|
|
6
|
-
|
6
|
+
### ⚠️ Beta Release Notice
|
7
|
+
|
8
|
+
This version is considered a **beta release**. While we have done our best to ensure stability and functionality, there may still be bugs, incomplete features, or breaking changes in future updates.
|
9
|
+
|
10
|
+
#### Important Notes
|
11
|
+
|
12
|
+
- **Available Features:** This SDK currently contains only 3 of PayPal's API endpoints. Additional endpoints and functionality will be added in the future.
|
13
|
+
- **API Changes:** Expect potential changes in APIs and features as we finalize the product.
|
14
|
+
|
15
|
+
### Information
|
16
|
+
|
17
|
+
The PayPal Server SDK provides integration access to the PayPal REST APIs. The API endpoints are divided into distinct controllers:
|
18
|
+
|
19
|
+
- Orders Controller: <a href="https://developer.paypal.com/docs/api/orders/v2/">Orders API v2</a>
|
20
|
+
- Payments Controller: <a href="https://developer.paypal.com/docs/api/payments/v2/">Payments API v2</a>
|
21
|
+
- Vault Controller: <a href="https://developer.paypal.com/docs/api/payment-tokens/v3/">Payment Method Tokens API v3</a> *Available in the US only.*
|
7
22
|
|
8
23
|
Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://developer.paypal.com/docs/api/orders/v2/)
|
9
24
|
|
@@ -12,20 +27,20 @@ Find out more here: [https://developer.paypal.com/docs/api/orders/v2/](https://d
|
|
12
27
|
Install the gem from the command line:
|
13
28
|
|
14
29
|
```ruby
|
15
|
-
gem install paypal-server-sdk -v 0.5.
|
30
|
+
gem install paypal-server-sdk -v 0.5.2
|
16
31
|
```
|
17
32
|
|
18
33
|
Or add the gem to your Gemfile and run `bundle`:
|
19
34
|
|
20
35
|
```ruby
|
21
|
-
gem 'paypal-server-sdk', '0.5.
|
36
|
+
gem 'paypal-server-sdk', '0.5.2'
|
22
37
|
```
|
23
38
|
|
24
|
-
For additional gem details, see the [RubyGems page for the paypal-server-sdk gem](https://rubygems.org/gems/paypal-server-sdk/versions/0.5.
|
39
|
+
For additional gem details, see the [RubyGems page for the paypal-server-sdk gem](https://rubygems.org/gems/paypal-server-sdk/versions/0.5.2).
|
25
40
|
|
26
41
|
## Initialize the API Client
|
27
42
|
|
28
|
-
**_Note:_** Documentation for the client can be found [here.](doc/client.md)
|
43
|
+
**_Note:_** Documentation for the client can be found [here.](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/client.md)
|
29
44
|
|
30
45
|
The following parameters are configurable for the API Client:
|
31
46
|
|
@@ -41,8 +56,8 @@ The following parameters are configurable for the API Client:
|
|
41
56
|
| `retry_statuses` | `Array` | A list of HTTP statuses to retry. <br> **Default: [408, 413, 429, 500, 502, 503, 504, 521, 522, 524]** |
|
42
57
|
| `retry_methods` | `Array` | A list of HTTP methods to retry. <br> **Default: %i[get put]** |
|
43
58
|
| `http_callback` | `HttpCallBack` | The Http CallBack allows defining callables for pre and post API calls. |
|
44
|
-
| `logging_configuration` | [`LoggingConfiguration`](
|
45
|
-
| `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](
|
59
|
+
| `logging_configuration` | [`LoggingConfiguration`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/logging-configuration.md) | The SDK logging configuration for API calls |
|
60
|
+
| `client_credentials_auth_credentials` | [`ClientCredentialsAuthCredentials`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md) | The credential object for OAuth 2 Client Credentials Grant |
|
46
61
|
|
47
62
|
The API client can be initialized as follows:
|
48
63
|
|
@@ -92,21 +107,21 @@ The SDK can be configured to use a different environment for making API calls. A
|
|
92
107
|
|
93
108
|
This API uses the following authentication schemes.
|
94
109
|
|
95
|
-
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](
|
110
|
+
* [`Oauth2 (OAuth 2 Client Credentials Grant)`](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/auth/oauth-2-client-credentials-grant.md)
|
96
111
|
|
97
112
|
## List of APIs
|
98
113
|
|
99
|
-
* [Orders](doc/controllers/orders.md)
|
100
|
-
* [Payments](doc/controllers/payments.md)
|
101
|
-
* [Vault](doc/controllers/vault.md)
|
114
|
+
* [Orders](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/controllers/orders.md)
|
115
|
+
* [Payments](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/controllers/payments.md)
|
116
|
+
* [Vault](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/controllers/vault.md)
|
102
117
|
|
103
118
|
## Classes Documentation
|
104
119
|
|
105
|
-
* [Utility Classes](doc/utility-classes.md)
|
106
|
-
* [HttpResponse](doc/http-response.md)
|
107
|
-
* [HttpRequest](doc/http-request.md)
|
108
|
-
* [LoggingConfiguration](doc/logging-configuration.md)
|
109
|
-
* [RequestLoggingConfiguration](doc/request-logging-configuration.md)
|
110
|
-
* [ResponseLoggingConfiguration](doc/response-logging-configuration.md)
|
111
|
-
* [Abstract Logger](doc/abstract-logger.md)
|
120
|
+
* [Utility Classes](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/utility-classes.md)
|
121
|
+
* [HttpResponse](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/http-response.md)
|
122
|
+
* [HttpRequest](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/http-request.md)
|
123
|
+
* [LoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/logging-configuration.md)
|
124
|
+
* [RequestLoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/request-logging-configuration.md)
|
125
|
+
* [ResponseLoggingConfiguration](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/response-logging-configuration.md)
|
126
|
+
* [Abstract Logger](https://www.github.com/paypal/PayPal-Ruby-Server-SDK/tree/0.5.2/doc/abstract-logger.md)
|
112
127
|
|
@@ -10,7 +10,7 @@ module PaypalServerSdk
|
|
10
10
|
attr_accessor :config, :http_call_back
|
11
11
|
|
12
12
|
def self.user_agent
|
13
|
-
'PayPal REST API Ruby SDK, Version: 0.5.
|
13
|
+
'PayPal REST API Ruby SDK, Version: 0.5.2, on OS {os-info}'
|
14
14
|
end
|
15
15
|
|
16
16
|
def self.user_agent_parameters
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paypal-server-sdk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- PayPal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-10-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: apimatic_core_interfaces
|