offsite_payments 2.7.8 → 2.7.10

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: 0dff2d3fe9551065cfcd1d6531c7a04890c37f3c
4
- data.tar.gz: 700f1a9607d5d270ac9a25fbfe23fa8b1c5948b7
3
+ metadata.gz: f6784710cabbc90a43b307a4cc412047c96a6171
4
+ data.tar.gz: d86bd553ec1eae59bc7482169ee53d9047b036e2
5
5
  SHA512:
6
- metadata.gz: e2739877b339aa7d973d4954373770be84a520fbb515a231af2324dcad90402c58bf99e8c6ab717a11cbd7bc4a82ab48cb205e7e5577154cf3923d0a2daf1105
7
- data.tar.gz: 487de42a9f3608a557c3ab5b1072b01e29f0532b1f06f3b20a3a54bc6adb4ca6523f69f17be0275340862456ee08f89e3b8cb04da5a8c3b0d77b5385df1f4e10
6
+ metadata.gz: 2c0ef45575498d7af98ebfd5b39a6abca73ddf8b0dfa1588c8db87528e05406ea09c853854a543f18c808c14cecca2a36dc242286f0d7dd4c6aa890c90a43f8e
7
+ data.tar.gz: 813a8370cd80285e9bbc94759d2a5eeb0f293f2c496708f2fb5cf76933aa7cc9d6141d39be893976ac9c5521cb6f95ca58e1f7387a2dc509220ec1bfecea1d87
@@ -106,9 +106,8 @@ module OffsitePayments #:nodoc:
106
106
 
107
107
  def status
108
108
  case transaction_status.downcase
109
- when 'success' then 'Completed'
110
- when 'failure' then 'Failed'
111
- when 'pending' then 'Pending'
109
+ when 'success' then 'Completed'
110
+ else 'Failed'
112
111
  end
113
112
  end
114
113
 
@@ -5,7 +5,7 @@ module OffsitePayments #:nodoc:
5
5
  self.service_url = 'https://secure.quickpay.dk/form/'
6
6
 
7
7
  def self.notification(post, options = {})
8
- Notification.new(post)
8
+ Notification.new(post, options)
9
9
  end
10
10
 
11
11
  def self.return(post, options = {})
@@ -180,6 +180,7 @@ module OffsitePayments #:nodoc:
180
180
  :cardnumber,
181
181
  :cardhash,
182
182
  :cardexpire,
183
+ :acquirer,
183
184
  :splitpayment,
184
185
  :fraudprobability,
185
186
  :fraudremarks,
@@ -195,8 +196,6 @@ module OffsitePayments #:nodoc:
195
196
  Digest::MD5.hexdigest(generate_md5string)
196
197
  end
197
198
 
198
- # Quickpay doesn't do acknowledgements of callback notifications
199
- # Instead it uses and MD5 hash of all parameters
200
199
  def acknowledge(authcode = nil)
201
200
  generate_md5check == params['md5check']
202
201
  end
@@ -1,3 +1,3 @@
1
1
  module OffsitePayments
2
- VERSION = "2.7.8"
2
+ VERSION = "2.7.10"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: offsite_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.8
4
+ version: 2.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-12 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport