worldpay 1.2.0 → 1.2.1
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 +1 -9
- data/worldpay-1.2.0.gem +0 -0
- data/worldpay.gemspec +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5493111e7e157c71ff62c906747916c6d4093a60
|
|
4
|
+
data.tar.gz: c49dfc42db26301fc95283ae82fb1a14d1196372
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bd74609a5e93a456ed3d9435e04e428ffd46e66652d180c5e3a93e9eba8c61a0e6b8b786dd176a18858566ff028513ccb409f7dcd7b4578c6603e55952c309d2
|
|
7
|
+
data.tar.gz: 8c63e5a145662b8c91639e9a5665f0559df18e5a60851a57a0e1de4b1fc2428ab1f24c543c28e1eea51fddd7ed53f633bc7d682e00dea8ed6c3d6868354ae49e
|
data/lib/worldpay.rb
CHANGED
|
@@ -137,14 +137,6 @@ class Worldpay
|
|
|
137
137
|
fmt = "%05.2f" % order['amount']
|
|
138
138
|
cost_cents = fmt.split('.').join('')
|
|
139
139
|
|
|
140
|
-
_authorizeOnly = false
|
|
141
|
-
if order['authorizeOnly']
|
|
142
|
-
_authorizeOnly = order['authorizeOnly']
|
|
143
|
-
elsif
|
|
144
|
-
order['authoriseOnly']
|
|
145
|
-
_authorizeOnly = order['authoriseOnly']
|
|
146
|
-
end
|
|
147
|
-
|
|
148
140
|
request = {
|
|
149
141
|
'token' => order['token'],
|
|
150
142
|
'orderDescription' => order['orderDescription'],
|
|
@@ -153,7 +145,7 @@ class Worldpay
|
|
|
153
145
|
'currencyCode' => order['currencyCode'],
|
|
154
146
|
'name' => order['name'],
|
|
155
147
|
'orderType' => order['orderType'] && @orderTypes ? (@orderTypes.include?(order['orderType']) ? order['orderType'] : 'ECOM') : 'ECOM',
|
|
156
|
-
'authorizeOnly' =>
|
|
148
|
+
'authorizeOnly' => !!order['authorizeOnly'] || false,
|
|
157
149
|
'billingAddress' => order['billingAddress'],
|
|
158
150
|
'deliveryAddress' => order['deliveryAddress'],
|
|
159
151
|
'customerOrderCode' => order['customerOrderCode'],
|
data/worldpay-1.2.0.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.1"
|
|
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.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Andrew Odendaal, Paul Beckford
|
|
@@ -67,6 +67,7 @@ files:
|
|
|
67
67
|
- worldpay-1.0.6.gem
|
|
68
68
|
- worldpay-1.0.7.gem
|
|
69
69
|
- worldpay-1.1.0.gem
|
|
70
|
+
- worldpay-1.2.0.gem
|
|
70
71
|
- worldpay.gemspec
|
|
71
72
|
homepage: https://online.worldpay.com
|
|
72
73
|
licenses:
|