paypal-rest-api 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +6 -1
- data/VERSION +1 -1
- data/lib/paypal-api.rb +24 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d478a936d84b05a9f4a6eb98491649648250cc49dcb3f524381404d9ded0084f
|
4
|
+
data.tar.gz: 5ec4bc0bbf68f3be84ce5cd1cd31e85f6fec5c9bc6ce795fd3b64eea902d033f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d2abe1866d6724c00520b43dfec0ac4b9e8383039e3580b78c182bbd184fd2499c0beaa1328500453e85868622fc0e1e49a4dbdc4f58e6401258021f04dd69
|
7
|
+
data.tar.gz: c51693b8445126a269f7d356baa4cba3ca40ffc0a19e80bc1278b69061146e723589237ac85a5940381309868f2af2e619cbdc4bc76295f0420d7606ab010d45
|
data/README.md
CHANGED
@@ -99,7 +99,12 @@ response.request # Request that generates this response
|
|
99
99
|
|
100
100
|
## Configuration options
|
101
101
|
|
102
|
-
PaypalAPI client accepts this additional options:
|
102
|
+
PaypalAPI client accepts this additional options:
|
103
|
+
|
104
|
+
- `:live`
|
105
|
+
- `:retries`,
|
106
|
+
- `:http_opts`
|
107
|
+
- `:cache`
|
103
108
|
|
104
109
|
### Option `:live`
|
105
110
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.1
|
data/lib/paypal-api.rb
CHANGED
@@ -18,6 +18,30 @@ module PaypalAPI
|
|
18
18
|
# @return [Client] PaypalAPI client
|
19
19
|
attr_writer :client
|
20
20
|
|
21
|
+
# Checks if PayPal LIVE environment enabled
|
22
|
+
# @return [Boolean] Checks if PayPal LIVE environment enabled
|
23
|
+
def live?
|
24
|
+
client.live?
|
25
|
+
end
|
26
|
+
|
27
|
+
# Checks if PayPal SANDBOX environment enabled
|
28
|
+
# @return [Boolean] Checks if PayPal SANDBOX environment enabled
|
29
|
+
def sandbox?
|
30
|
+
client.sandbox?
|
31
|
+
end
|
32
|
+
|
33
|
+
# Base API URL
|
34
|
+
# @return [String] Base API URL
|
35
|
+
def api_url
|
36
|
+
client.api_url
|
37
|
+
end
|
38
|
+
|
39
|
+
# Base WEB URL
|
40
|
+
# @return [String] Base WEB URL
|
41
|
+
def web_url
|
42
|
+
client.web_url
|
43
|
+
end
|
44
|
+
|
21
45
|
# @!macro [new] request
|
22
46
|
#
|
23
47
|
# @api public
|