workarea-usaepay 1.0.41 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/workarea/payment/authorize/credit_card.decorator +1 -1
- data/app/models/workarea/payment/credit_card_data.rb +3 -1
- data/lib/usaepay/bogus_usaepay.rb +8 -1
- data/lib/usaepay/gateway.rb +1 -0
- data/lib/workarea/usaepay/version.rb +1 -1
- data/test/system/workarea/storefront/accounts/credit_cards_system_test.decorator +0 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eea921e44240fa8e5b736780deb310ab0854f8026f458b886b0f7e2ab6972a0a
|
4
|
+
data.tar.gz: df56bea159a32d2a70f9a4e6aa40ee1109e734748f8cdc313eb0a0cb7c83add7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5a79b0c95cc704dc46d13d921eacab2a0791601f47adcee08c9181d95db92591d3f814fa6079293b0b767676c59deda64f35c64ea4f27adf0a69bec85b84628
|
7
|
+
data.tar.gz: a8b8f96d83d72541def82c46faa1091251ddc975e7f69dc0471655be5afc34d8f37d81e66fbd0cab93ed3796196786e64526ee7980e98b1a18332e69ff9e98f4
|
@@ -2,9 +2,11 @@ module Workarea
|
|
2
2
|
class Payment
|
3
3
|
module CreditCardData
|
4
4
|
def transaction_args
|
5
|
+
ip_address = options[:checkout]&.order&.ip_address
|
5
6
|
{
|
6
7
|
order_id: tender.payment.id,
|
7
|
-
billing_address: billing_address
|
8
|
+
billing_address: billing_address,
|
9
|
+
ip_address: ip_address
|
8
10
|
}
|
9
11
|
end
|
10
12
|
|
@@ -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', :token => '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
|
data/lib/usaepay/gateway.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-usaepay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gunasekaran.Raja
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|