worldpay 1.2.5 → 1.2.6
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/worldpay.rb +8 -4
- data/worldpay-1.2.5.gem +0 -0
- data/worldpay.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b5e2e2b97dc4ccafeb40c1e789b2f2fbe9760474
|
|
4
|
+
data.tar.gz: 950900c757a9a5b54c60ac26430cfd7c84c7095f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88d97e290adfc80091d208a27047afd79cbe02ab82fef0a81ab62940c26c40ccc3b757481c465c93f85b10db244253c544ba8ed8e118d7095db6888ecfeaeed3
|
|
7
|
+
data.tar.gz: d8072480ecb823876266f15b3bc0be126d85fbd1b7b1f6ee5bb078c43146107b8fe5353b971b11aa9f64a11056cb85cf3ae72d34b6e981e81564abc9baa75a57
|
data/lib/worldpay.rb
CHANGED
|
@@ -125,10 +125,10 @@ class Worldpay
|
|
|
125
125
|
self.checkOrderInput(order)
|
|
126
126
|
|
|
127
127
|
defaults = {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
'orderType' => 'ECOM', #Order Type: ECOM/MOTO/RECURRING
|
|
129
|
+
'customerIdentifiers' => nil,
|
|
130
|
+
'billingAddress' => nil,
|
|
131
|
+
'deliveryAddress' => nil
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
order = defaults.merge(order)
|
|
@@ -145,6 +145,7 @@ class Worldpay
|
|
|
145
145
|
'siteCode' => order['siteCode'],
|
|
146
146
|
'settlementCurrency' => order['settlementCurrency'],
|
|
147
147
|
'name' => order['name'],
|
|
148
|
+
'shopperEmailAddress' => order['shopperEmailAddress'] ? order['shopperEmailAddress'] : "",
|
|
148
149
|
'orderType' => ['ECOM','MOTO','RECURRING','APM'].include?(order['orderType']) ? order['orderType'] : 'ECOM',
|
|
149
150
|
'authorizeOnly' => (!!order['authorizeOnly'] || !!order['authoriseOnly']) || false,
|
|
150
151
|
'billingAddress' => order['billingAddress'],
|
|
@@ -166,6 +167,7 @@ class Worldpay
|
|
|
166
167
|
request.merge!(threeDsInfo)
|
|
167
168
|
end
|
|
168
169
|
|
|
170
|
+
|
|
169
171
|
response = sendRequest('orders', request.to_json, true)
|
|
170
172
|
|
|
171
173
|
if (response['body']['orderCode'])
|
|
@@ -329,6 +331,8 @@ class Worldpay
|
|
|
329
331
|
http.request(request)
|
|
330
332
|
end
|
|
331
333
|
|
|
334
|
+
# raise request.body.to_s
|
|
335
|
+
|
|
332
336
|
if (result.read_body && result.read_body.length >= 2)
|
|
333
337
|
response = JSON.parse(result.read_body)
|
|
334
338
|
else
|
data/worldpay-1.2.5.gem
ADDED
|
Binary file
|
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.6"
|
|
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,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: worldpay
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Odendaal, Paul Beckford
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-12-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -55,6 +55,7 @@ files:
|
|
|
55
55
|
- lib/worldpay.rb
|
|
56
56
|
- test/test_helper.rb
|
|
57
57
|
- test/worldpay_test.rb
|
|
58
|
+
- worldpay-1.2.5.gem
|
|
58
59
|
- worldpay.gemspec
|
|
59
60
|
homepage: https://online.worldpay.com
|
|
60
61
|
licenses:
|