amazon_pay 2.3.3 → 2.3.4
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/lib/amazon_pay/client.rb +5 -1
- data/lib/amazon_pay/response.rb +3 -2
- data/lib/amazon_pay/version.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: 6557a6e8545c147b07d498179a9311f2ff183c2e227d4f4b97d61585a993f315
|
|
4
|
+
data.tar.gz: 6974fe8572f744793c36d917f571f938c79521b6edaa765b69b36ab58d877ae7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 24639a9de06e6589341c49ca5b5298afaa8071d1689336dcc095ae33f7481d78e05468375ed76653efa89688b494822b5919d29b5a624f97ee56ad220b1a752a
|
|
7
|
+
data.tar.gz: 7d1be37baf4675b4ba3c1d6c543f02ba77221b677dbfe1e2b2be16eb74b3a5843018d1f330b69575de7da52fd0957a9321ad2b6264dc2227e01c6a93fc8f23f9
|
data/lib/amazon_pay/client.rb
CHANGED
|
@@ -173,6 +173,7 @@ module AmazonPay
|
|
|
173
173
|
# @optional access_token [String]
|
|
174
174
|
# @optional merchant_id [String]
|
|
175
175
|
# @optional mws_auth_token [String]
|
|
176
|
+
|
|
176
177
|
def get_billing_agreement_details(
|
|
177
178
|
amazon_billing_agreement_id,
|
|
178
179
|
address_consent_token: nil,
|
|
@@ -190,7 +191,10 @@ module AmazonPay
|
|
|
190
191
|
optional = {
|
|
191
192
|
# Preseving address_consent_token for backwards compatibility
|
|
192
193
|
# AccessToken returns all data in AddressConsentToken plus new data
|
|
193
|
-
|
|
194
|
+
# You cannot pass both address_consent_token and access_token in
|
|
195
|
+
# the same call or you will encounter a 400/"AmbiguousToken" error
|
|
196
|
+
'AccessToken' => access_token,
|
|
197
|
+
'AddressConsentToken' => address_consent_token,
|
|
194
198
|
'MWSAuthToken' => mws_auth_token
|
|
195
199
|
}
|
|
196
200
|
|
data/lib/amazon_pay/response.rb
CHANGED
|
@@ -19,10 +19,11 @@ module AmazonPay
|
|
|
19
19
|
|
|
20
20
|
def get_element(xpath, xml_element)
|
|
21
21
|
xml = self.to_xml
|
|
22
|
+
value = nil
|
|
22
23
|
xml.elements.each(xpath) do |element|
|
|
23
|
-
|
|
24
|
+
value = element.elements[xml_element].text
|
|
24
25
|
end
|
|
25
|
-
return
|
|
26
|
+
return value
|
|
26
27
|
end
|
|
27
28
|
|
|
28
29
|
def code
|
data/lib/amazon_pay/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: amazon_pay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.3.
|
|
4
|
+
version: 2.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- AmazonPay
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-
|
|
11
|
+
date: 2018-10-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: AmazonPay Ruby SDK
|
|
14
14
|
email: amazon-pay-sdk@amazon.com
|