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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5e2e2b97dc4ccafeb40c1e789b2f2fbe9760474
4
- data.tar.gz: 950900c757a9a5b54c60ac26430cfd7c84c7095f
3
+ metadata.gz: 04ba198883106b578590c3c123785e6f27a9382d
4
+ data.tar.gz: d11022746be5463e30af4feffc43bb90c103c90c
5
5
  SHA512:
6
- metadata.gz: 88d97e290adfc80091d208a27047afd79cbe02ab82fef0a81ab62940c26c40ccc3b757481c465c93f85b10db244253c544ba8ed8e118d7095db6888ecfeaeed3
7
- data.tar.gz: d8072480ecb823876266f15b3bc0be126d85fbd1b7b1f6ee5bb078c43146107b8fe5353b971b11aa9f64a11056cb85cf3ae72d34b6e981e81564abc9baa75a57
6
+ metadata.gz: da3a6e09dcaa2e83ce4dab76ad58f9900a31db41a2f8f45a2d13120bfc09452bf70e34c9ed2c5994286ed38926e6cf43bf756f4f6261ea5be5b3d1744144600c
7
+ data.tar.gz: ed5716b466076d10668658a43534c3fbdda895261f78bfd27ec20125f1bd9f8c6d61c59efe5097fb9329fb8c57ebeeb4e779c6b7cfccc1ee710facb655d41686
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- worldpay (1.2.5)
4
+ worldpay (1.2.6)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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)
@@ -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.6"
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.}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: worldpay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Odendaal, Paul Beckford