worldpay 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c667291c708489ce7c0e5c7eaf110120c2463a5
4
- data.tar.gz: 40a235094c4840cb23d48e37a5882e4318e094e3
3
+ metadata.gz: 40da1692a88bfa822905fe470018e9d69e741c63
4
+ data.tar.gz: c26eb224c36ce236571f05829b79659ebb223de9
5
5
  SHA512:
6
- metadata.gz: 6c8a6c40783e26fc00e6e489ee5e7d5a91ed653d0b84fac8076765d13522afb1eb7c314a12ee4516b7df0cb5b2d6bfb07e8f659a57656f3a2bc212ba438e6e9c
7
- data.tar.gz: 4c845add987be598605eb542940f784623534716be52a60e6f9a959f7df5aa92f7e3b36981ef31bcf9e4a1d4fe2019926e9a3a7389786506a60d0968b0ee89fe
6
+ metadata.gz: 938c8d3202cb3ba6c43483836d9c3bedf08aee54d9f7c5816955b9165fae0967e6817c9af59d83c046921fd49f6109b73a650c1f2e5811f851e9d09b9f8826bf
7
+ data.tar.gz: 259a6063519402f93c7b435a52a4e5bacf7edceecd4986e8bb4a3b3fe46bb226ff559746edaf537b632a4503c948956b2a7b3aea5f990d4404e5b010e9821fb7
data/lib/worldpay.rb CHANGED
@@ -14,7 +14,7 @@ class Worldpay
14
14
  @errors = {}
15
15
  @raise_errors = true
16
16
 
17
- @version = '1.0.6'
17
+ @version = '1.2.3'
18
18
 
19
19
  @orderTypes = ['ECOM','MOTO','RECURRING']
20
20
 
@@ -145,7 +145,7 @@ class Worldpay
145
145
  'currencyCode' => order['currencyCode'],
146
146
  'name' => order['name'],
147
147
  'orderType' => order['orderType'] && @orderTypes ? (@orderTypes.include?(order['orderType']) ? order['orderType'] : 'ECOM') : 'ECOM',
148
- 'authorizeOnly' => !!order['authorizeOnly'] || false,
148
+ 'authorizeOnly' => (!!order['authorizeOnly'] || !!order['authoriseOnly']) || false,
149
149
  'billingAddress' => order['billingAddress'],
150
150
  'deliveryAddress' => order['deliveryAddress'],
151
151
  'customerOrderCode' => order['customerOrderCode'],
@@ -221,6 +221,9 @@ class Worldpay
221
221
 
222
222
  end
223
223
 
224
+ def authorise3DSOrder(orderCode, responseCode, threeDsInfo)
225
+ authorize3DSOrder(orderCode, responseCode, threeDsInfo)
226
+ end
224
227
  def authorize3DSOrder(orderCode, responseCode, threeDsInfo)
225
228
  request = {
226
229
  'threeDSResponseCode' => responseCode,
@@ -241,6 +244,9 @@ class Worldpay
241
244
  end
242
245
 
243
246
  #Capture Authorized Worldpay Order
247
+ def captureAuthorisedOrder(orderCode=false, amount=false)
248
+ captureAuthorizedOrder(orderCode, amount)
249
+ end
244
250
  def captureAuthorizedOrder(orderCode=false, amount=false)
245
251
  if (orderCode || orderCode.is_a?(String))
246
252
  #
@@ -256,6 +262,9 @@ class Worldpay
256
262
  end
257
263
 
258
264
  #Cancel Authorized Worldpay Order
265
+ def cancelAuthorisedOrder(orderCode=false)
266
+ cancelAuthorizedOrder(orderCode)
267
+ end
259
268
  def cancelAuthorizedOrder(orderCode=false)
260
269
  if (orderCode || orderCode.is_a?(String))
261
270
  #
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.2"
7
+ spec.version = "1.2.3"
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.2
4
+ version: 1.2.3
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-04-11 00:00:00.000000000 Z
11
+ date: 2016-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -69,6 +69,7 @@ files:
69
69
  - worldpay-1.1.0.gem
70
70
  - worldpay-1.2.0.gem
71
71
  - worldpay-1.2.1.gem
72
+ - worldpay-1.2.2.gem
72
73
  - worldpay.gemspec
73
74
  homepage: https://online.worldpay.com
74
75
  licenses: