workarea-usaepay 1.0.41 → 1.0.42

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
  SHA256:
3
- metadata.gz: a89c33058a70e4bc964c5ea6d27236a766005795d057e477d91e272b49a02ed7
4
- data.tar.gz: 764b16194460342703c2ab33df722611c59b01dc74d1b44fe722bc8e6b7c89f3
3
+ metadata.gz: 24926851ec2fa052825a8b86c71264aacf016778320e20626695256fbd24312a
4
+ data.tar.gz: b4b86d36a8444791127fd6ac2c7b72607be485466cace87e17d37a21221fa198
5
5
  SHA512:
6
- metadata.gz: d888fc34dffa6aa984ceef47b4c7cca7b90df786f613feadcf11814975105e33eb8d8044ee5ae7514c2ac334d2aeeecceafbe89154205635bf1d3737403e48a3
7
- data.tar.gz: eb57c2ef96819e31b17e0a50ca359cab881405f2e8cbf0a4e50cc897a64b4fea8ad4423cab9728a7ef1e50e552085b61351f4ed7c06bda75a9263efff164e944
6
+ metadata.gz: 492deb8c6356d86e48ce7c5964dbda4662d3b644897ce17831196e219048bf95d76aa52f89f53e2ccf05593bd3b32fe85323e247f56ac491abe7367a0a67f355
7
+ data.tar.gz: a260ca9631d4389bfc06a7c0d77f7eb888283355c997eb1632323e48b617272b29c2112948deba56c328fba90660988c48c26d7d62a5523229e0f1b774da2b65
@@ -2,7 +2,14 @@ module ActiveMerchant
2
2
  module Billing
3
3
  class BogusUsaEpayGateway < BogusGateway
4
4
  def verify(paysource, options)
5
- authorize(1, paysource, options)
5
+ case normalize(paysource)
6
+ when /1$/
7
+ Response.new(true, SUCCESS_MESSAGE, {:billingid => '1'}, :test => true, :authorization => AUTHORIZATION)
8
+ when /2$/
9
+ Response.new(false, FAILURE_MESSAGE, {:billingid => nil, :error => FAILURE_MESSAGE }, :test => true, :error_code => STANDARD_ERROR_CODE[:processing_error])
10
+ else
11
+ raise Error, error_message(paysource)
12
+ end
6
13
  end
7
14
  end
8
15
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Usaepay
3
- VERSION = "1.0.41".freeze
3
+ VERSION = "1.0.42".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-usaepay
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.41
4
+ version: 1.0.42
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gunasekaran.Raja