worldpay 1.2.6 → 1.2.7
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/Gemfile.lock +1 -1
- data/lib/worldpay.rb +2 -3
- data/worldpay.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 04ba198883106b578590c3c123785e6f27a9382d
|
|
4
|
+
data.tar.gz: d11022746be5463e30af4feffc43bb90c103c90c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: da3a6e09dcaa2e83ce4dab76ad58f9900a31db41a2f8f45a2d13120bfc09452bf70e34c9ed2c5994286ed38926e6cf43bf756f4f6261ea5be5b3d1744144600c
|
|
7
|
+
data.tar.gz: ed5716b466076d10668658a43534c3fbdda895261f78bfd27ec20125f1bd9f8c6d61c59efe5097fb9329fb8c57ebeeb4e779c6b7cfccc1ee710facb655d41686
|
data/Gemfile.lock
CHANGED
data/lib/worldpay.rb
CHANGED
|
@@ -151,7 +151,7 @@ class Worldpay
|
|
|
151
151
|
'billingAddress' => order['billingAddress'],
|
|
152
152
|
'deliveryAddress' => order['deliveryAddress'],
|
|
153
153
|
'customerOrderCode' => order['customerOrderCode'],
|
|
154
|
-
'customerIdentifiers' => order['customerIdentifiers'],
|
|
154
|
+
'customerIdentifiers' => order['customerIdentifiers'].present? ? JSON.parse(order['customerIdentifiers']) : nil,
|
|
155
155
|
'statementNarrative' => order['statementNarrative'],
|
|
156
156
|
'orderCodePrefix' => order['orderCodePrefix'],
|
|
157
157
|
'orderCodeSuffix' => order['orderCodeSuffix']
|
|
@@ -167,7 +167,6 @@ class Worldpay
|
|
|
167
167
|
request.merge!(threeDsInfo)
|
|
168
168
|
end
|
|
169
169
|
|
|
170
|
-
|
|
171
170
|
response = sendRequest('orders', request.to_json, true)
|
|
172
171
|
|
|
173
172
|
if (response['body']['orderCode'])
|
|
@@ -213,7 +212,7 @@ class Worldpay
|
|
|
213
212
|
'cancelUrl' => order['cancelUrl'],
|
|
214
213
|
'statementNarrative' => order['statementNarrative'],
|
|
215
214
|
'settlementCurrency' => order['settlementCurrency'],
|
|
216
|
-
'customerIdentifiers' => order['customerIdentifiers']
|
|
215
|
+
'customerIdentifiers' => order['customerIdentifiers'].present? ? JSON.parse(order['customerIdentifiers']) : nil,
|
|
217
216
|
}
|
|
218
217
|
|
|
219
218
|
response = sendRequest('orders', request.to_json, true)
|
data/worldpay.gemspec
CHANGED
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "worldpay"
|
|
7
|
-
spec.version = "1.2.
|
|
7
|
+
spec.version = "1.2.7"
|
|
8
8
|
spec.authors = ["Andrew Odendaal, Paul Beckford"]
|
|
9
9
|
spec.email = ["andrew.odendaal@worldpay.com"]
|
|
10
10
|
spec.summary = %q{online.worldpay.com ruby lib.}
|