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 +4 -4
- data/lib/usaepay/bogus_usaepay.rb +8 -1
- data/lib/workarea/usaepay/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24926851ec2fa052825a8b86c71264aacf016778320e20626695256fbd24312a
|
4
|
+
data.tar.gz: b4b86d36a8444791127fd6ac2c7b72607be485466cace87e17d37a21221fa198
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|