workarea-usaepay 1.0.40 → 1.0.41

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: f4de471500e7e2b9cf03f0f61327563f5c9be841d7518222e0f869135a8dd267
4
- data.tar.gz: ddaf0fdfc9d06cf13433e0b9351f16217b16bd37e04691cb4ce0d62c44ae5aa6
3
+ metadata.gz: a89c33058a70e4bc964c5ea6d27236a766005795d057e477d91e272b49a02ed7
4
+ data.tar.gz: 764b16194460342703c2ab33df722611c59b01dc74d1b44fe722bc8e6b7c89f3
5
5
  SHA512:
6
- metadata.gz: 1daf19e12f6d9a92e8a82fd59ce6027fa8e439a0c9bb3b2674ca4a43dba0b39d475509241de0aee160ffd1699aa5a8c9a42bab274ecc9a4ed7a41b325e6ef74c
7
- data.tar.gz: de0d2b17394bd57aa262a3cd85c0857f07afce18896efa1d515c0385d30d504e52e19bd468604e9901ef2548aa7ccc641554bcb32db53a0f48cefa42a7c4c99d
6
+ metadata.gz: d888fc34dffa6aa984ceef47b4c7cca7b90df786f613feadcf11814975105e33eb8d8044ee5ae7514c2ac334d2aeeecceafbe89154205635bf1d3737403e48a3
7
+ data.tar.gz: eb57c2ef96819e31b17e0a50ca359cab881405f2e8cbf0a4e50cc897a64b4fea8ad4423cab9728a7ef1e50e552085b61351f4ed7c06bda75a9263efff164e944
@@ -0,0 +1,9 @@
1
+ module ActiveMerchant
2
+ module Billing
3
+ class BogusUsaEpayGateway < BogusGateway
4
+ def verify(paysource, options)
5
+ authorize(1, paysource, options)
6
+ end
7
+ end
8
+ end
9
+ end
@@ -4,6 +4,7 @@ require 'workarea/admin'
4
4
  require 'workarea/usaepay/engine'
5
5
  require 'workarea/usaepay/version'
6
6
  require 'usaepay/gateway'
7
+ require 'usaepay/bogus_usaepay'
7
8
 
8
9
  module Workarea
9
10
  module Usaepay
@@ -30,12 +31,12 @@ module Workarea
30
31
  def self.auto_initialize_gateway
31
32
  if credentials.present?
32
33
  if Rails.env.test?
33
- self.gateway = ActiveMerchant::Billing::BogusGateway.new credentials
34
+ self.gateway = ActiveMerchant::Billing::BogusUsaEpayGateway.new credentials
34
35
  else
35
36
  self.gateway = ActiveMerchant::Billing::UsaEpayCustom.new credentials
36
37
  end
37
38
  else
38
- self.gateway = ActiveMerchant::Billing::BogusGateway.new
39
+ self.gateway = ActiveMerchant::Billing::BogusUsaEpayGateway.new
39
40
  end
40
41
  end
41
42
  end
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Usaepay
3
- VERSION = "1.0.40".freeze
3
+ VERSION = "1.0.41".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.40
4
+ version: 1.0.41
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gunasekaran.Raja
@@ -53,6 +53,7 @@ files:
53
53
  - bin/rails
54
54
  - config/initializers/workarea.rb
55
55
  - config/routes.rb
56
+ - lib/usaepay/bogus_usaepay.rb
56
57
  - lib/usaepay/gateway.rb
57
58
  - lib/workarea/storefront/system_test.rb
58
59
  - lib/workarea/usaepay.rb