amazon_pay 2.3.2 → 2.3.3
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 +5 -5
- data/{lib/CHANGES.txt → CHANGES.txt} +0 -4
- data/LICENSE +0 -0
- data/NOTICE +0 -0
- data/README.md +0 -22
- data/lib/amazon_pay/client.rb +11 -6
- data/lib/amazon_pay/ipn_handler.rb +0 -0
- data/lib/amazon_pay/login.rb +0 -0
- data/lib/amazon_pay/request.rb +0 -0
- data/lib/amazon_pay/response.rb +0 -0
- data/lib/amazon_pay/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: e46f235be98360aa7d1d21c15717f9c5e50dd5d534ff1c5d4f845c63253f7119
|
|
4
|
+
data.tar.gz: 81a4f2171e210214cf52d1eb35a2e28653475ac205001c0c5926bb6226e84cd7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dab4e71451b3736b3ff8dab6616495ae2c09d747f4e9c74d5bf1433c00dcd706539d845d4526a935152b4de38fc0f4bd9eb39b5b2f31aef8a4182f08f31a07ba
|
|
7
|
+
data.tar.gz: f0a6075323340a97dc38b77b7adab58d4cfd0959bef811f8427315e87558afc89dbfc0f5c120e14739c81210d49f3d1bcaf68492be4cb9348c7c350539eafe05
|
data/LICENSE
CHANGED
|
File without changes
|
data/NOTICE
CHANGED
|
File without changes
|
data/README.md
CHANGED
|
@@ -155,28 +155,6 @@ response = client.list_order_reference(
|
|
|
155
155
|
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
Below is an example on how to GetMerchantAccountStatus
|
|
159
|
-
API call:
|
|
160
|
-
|
|
161
|
-
```ruby
|
|
162
|
-
require 'amazon_pay'
|
|
163
|
-
|
|
164
|
-
# Your Amazon Pay keys are
|
|
165
|
-
# available in your Seller Central account
|
|
166
|
-
merchant_id = 'YOUR_MERCHANT_ID'
|
|
167
|
-
access_key = 'YOUR_ACCESS_KEY'
|
|
168
|
-
secret_key = 'YOUR_SECRET_KEY'
|
|
169
|
-
|
|
170
|
-
client = AmazonPay::Client.new(
|
|
171
|
-
merchant_id,
|
|
172
|
-
access_key,
|
|
173
|
-
secret_key
|
|
174
|
-
)
|
|
175
|
-
|
|
176
|
-
response = client.client.get_merchant_account_status
|
|
177
|
-
|
|
178
|
-
```
|
|
179
|
-
|
|
180
158
|
Below is an example on how to query using the next token received
|
|
181
159
|
from ListOrderReference using the ListOrderReferenceByNextToken
|
|
182
160
|
API call:
|
data/lib/amazon_pay/client.rb
CHANGED
|
@@ -26,7 +26,6 @@ module AmazonPay
|
|
|
26
26
|
)
|
|
27
27
|
|
|
28
28
|
attr_accessor(
|
|
29
|
-
:sandbox,
|
|
30
29
|
:proxy_addr,
|
|
31
30
|
:proxy_port,
|
|
32
31
|
:proxy_user,
|
|
@@ -56,7 +55,7 @@ module AmazonPay
|
|
|
56
55
|
merchant_id,
|
|
57
56
|
access_key,
|
|
58
57
|
secret_key,
|
|
59
|
-
sandbox:
|
|
58
|
+
sandbox:false,
|
|
60
59
|
currency_code: :usd,
|
|
61
60
|
region: :na,
|
|
62
61
|
platform_id: nil,
|
|
@@ -67,7 +66,7 @@ module AmazonPay
|
|
|
67
66
|
proxy_port: nil,
|
|
68
67
|
proxy_user: nil,
|
|
69
68
|
proxy_pass: nil,
|
|
70
|
-
log_enabled:
|
|
69
|
+
log_enabled:false,
|
|
71
70
|
log_file_name: nil,
|
|
72
71
|
log_level: :DEBUG
|
|
73
72
|
)
|
|
@@ -463,7 +462,7 @@ module AmazonPay
|
|
|
463
462
|
optional = {
|
|
464
463
|
'MWSAuthToken' => mws_auth_token
|
|
465
464
|
}
|
|
466
|
-
|
|
465
|
+
|
|
467
466
|
operation(parameters, optional)
|
|
468
467
|
end
|
|
469
468
|
|
|
@@ -511,6 +510,7 @@ module AmazonPay
|
|
|
511
510
|
# @optional store_name [String]
|
|
512
511
|
# @optional order_item_categories Array[String]
|
|
513
512
|
# @optional custom_information [String]
|
|
513
|
+
# @optional supplementary_data [String]
|
|
514
514
|
# @optional merchant_id [String]
|
|
515
515
|
# @optional mws_auth_token [String]
|
|
516
516
|
def set_order_reference_details(
|
|
@@ -524,6 +524,7 @@ module AmazonPay
|
|
|
524
524
|
store_name: nil,
|
|
525
525
|
order_item_categories: nil,
|
|
526
526
|
custom_information: nil,
|
|
527
|
+
supplementary_data: nil,
|
|
527
528
|
merchant_id: @merchant_id,
|
|
528
529
|
mws_auth_token: nil
|
|
529
530
|
)
|
|
@@ -543,6 +544,7 @@ module AmazonPay
|
|
|
543
544
|
'OrderReferenceAttributes.SellerOrderAttributes.SellerOrderId' => seller_order_id,
|
|
544
545
|
'OrderReferenceAttributes.SellerOrderAttributes.StoreName' => store_name,
|
|
545
546
|
'OrderReferenceAttributes.SellerOrderAttributes.CustomInformation' => custom_information,
|
|
547
|
+
'OrderReferenceAttributes.SellerOrderAttributes.SupplementaryData' => supplementary_data,
|
|
546
548
|
'MWSAuthToken' => mws_auth_token
|
|
547
549
|
}
|
|
548
550
|
|
|
@@ -571,6 +573,7 @@ module AmazonPay
|
|
|
571
573
|
# @optional store_name [String]
|
|
572
574
|
# @optional order_item_categories Array[String]
|
|
573
575
|
# @optional custom_information [String]
|
|
576
|
+
# @optional supplementary_data [String]
|
|
574
577
|
# @optional merchant_id [String]
|
|
575
578
|
# @optional mws_auth_token [String]
|
|
576
579
|
def set_order_attributes(
|
|
@@ -586,6 +589,7 @@ module AmazonPay
|
|
|
586
589
|
store_name: nil,
|
|
587
590
|
order_item_categories: nil,
|
|
588
591
|
custom_information: nil,
|
|
592
|
+
supplementary_data: nil,
|
|
589
593
|
merchant_id: @merchant_id,
|
|
590
594
|
mws_auth_token: nil
|
|
591
595
|
)
|
|
@@ -607,6 +611,7 @@ module AmazonPay
|
|
|
607
611
|
'OrderAttributes.RequestPaymentAuthorization' => request_payment_authorization,
|
|
608
612
|
'OrderAttributes.SellerOrderAttributes.StoreName' => store_name,
|
|
609
613
|
'OrderAttributes.SellerOrderAttributes.CustomInformation' => custom_information,
|
|
614
|
+
'OrderAttributes.SellerOrderAttributes.SupplementaryData' => supplementary_data,
|
|
610
615
|
'MWSAuthToken' => mws_auth_token
|
|
611
616
|
}
|
|
612
617
|
|
|
@@ -1076,8 +1081,8 @@ module AmazonPay
|
|
|
1076
1081
|
list = {}
|
|
1077
1082
|
|
|
1078
1083
|
categories.each_with_index do |val, index|
|
|
1079
|
-
|
|
1080
|
-
end
|
|
1084
|
+
list.merge!("#{attribute_key}.SellerOrderAttributes.OrderItemCategories.OrderItemCategory.#{index + 1}" => val)
|
|
1085
|
+
end
|
|
1081
1086
|
|
|
1082
1087
|
list
|
|
1083
1088
|
end
|
|
File without changes
|
data/lib/amazon_pay/login.rb
CHANGED
|
File without changes
|
data/lib/amazon_pay/request.rb
CHANGED
|
File without changes
|
data/lib/amazon_pay/response.rb
CHANGED
|
File without changes
|
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.3
|
|
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-09-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: AmazonPay Ruby SDK
|
|
14
14
|
email: amazon-pay-sdk@amazon.com
|
|
@@ -16,10 +16,10 @@ executables: []
|
|
|
16
16
|
extensions: []
|
|
17
17
|
extra_rdoc_files: []
|
|
18
18
|
files:
|
|
19
|
+
- CHANGES.txt
|
|
19
20
|
- LICENSE
|
|
20
21
|
- NOTICE
|
|
21
22
|
- README.md
|
|
22
|
-
- lib/CHANGES.txt
|
|
23
23
|
- lib/amazon_pay.rb
|
|
24
24
|
- lib/amazon_pay/client.rb
|
|
25
25
|
- lib/amazon_pay/client_helper.rb
|
|
@@ -32,12 +32,12 @@ files:
|
|
|
32
32
|
- lib/amazon_pay/version.rb
|
|
33
33
|
homepage: https://github.com/amzn/amazon-pay-sdk-ruby
|
|
34
34
|
licenses:
|
|
35
|
-
- Apache
|
|
35
|
+
- Apache-2.0
|
|
36
36
|
metadata: {}
|
|
37
37
|
post_install_message:
|
|
38
38
|
rdoc_options: []
|
|
39
39
|
require_paths:
|
|
40
|
-
-
|
|
40
|
+
- lib
|
|
41
41
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
42
42
|
requirements:
|
|
43
43
|
- - ">="
|
|
@@ -50,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
50
50
|
version: '0'
|
|
51
51
|
requirements: []
|
|
52
52
|
rubyforge_project:
|
|
53
|
-
rubygems_version: 2.
|
|
53
|
+
rubygems_version: 2.7.4
|
|
54
54
|
signing_key:
|
|
55
55
|
specification_version: 4
|
|
56
56
|
summary: AmazonPay Ruby SDK
|