workarea-usaepay 1.1.0 → 1.1.1
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:
|
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
|
@@ -7,14 +7,13 @@ module Workarea
|
|
7
7
|
|
8
8
|
def complete! #[3]
|
9
9
|
return unless Payment::StoreCreditCard.new(tender, options).save! #[4]
|
10
|
-
|
10
|
+
|
11
11
|
transaction.response = #[5][6]
|
12
12
|
handle_active_merchant_errors do #[7]
|
13
13
|
gateway.authorize( #[8]
|
14
14
|
transaction.amount.cents, #[9]
|
15
15
|
payment_source,
|
16
|
-
transaction_args
|
17
|
-
ip_address
|
16
|
+
transaction_args
|
18
17
|
)
|
19
18
|
end
|
20
19
|
|
@@ -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
|
|
data/lib/usaepay/gateway.rb
CHANGED
@@ -6,9 +6,9 @@ module ActiveMerchant
|
|
6
6
|
class_attribute :test_rest_endpoint, :production_rest_endpoint
|
7
7
|
|
8
8
|
|
9
|
-
def authorize(money, credit_card, options = {}
|
9
|
+
def authorize(money, credit_card, options = {})
|
10
10
|
post = {}
|
11
|
-
post[:ip] = ip_address if ip_address.present?
|
11
|
+
post[:ip] = options[:ip_address] if options[:ip_address].present?
|
12
12
|
add_amount(post, money)
|
13
13
|
add_invoice(post, options)
|
14
14
|
|
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.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-09-
|
11
|
+
date: 2020-09-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea
|