workarea-usaepay 1.1.1 → 1.2.0

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: eea921e44240fa8e5b736780deb310ab0854f8026f458b886b0f7e2ab6972a0a
4
- data.tar.gz: df56bea159a32d2a70f9a4e6aa40ee1109e734748f8cdc313eb0a0cb7c83add7
3
+ metadata.gz: 3ce85dd707b183bf1a4746b1dbfd5448a981bbd72949357caf9b447630b66458
4
+ data.tar.gz: 3003b42f85f918938da4087d5dace9cccc7e0bbf231c3595c906cbd80ee3f58b
5
5
  SHA512:
6
- metadata.gz: d5a79b0c95cc704dc46d13d921eacab2a0791601f47adcee08c9181d95db92591d3f814fa6079293b0b767676c59deda64f35c64ea4f27adf0a69bec85b84628
7
- data.tar.gz: a8b8f96d83d72541def82c46faa1091251ddc975e7f69dc0471655be5afc34d8f37d81e66fbd0cab93ed3796196786e64526ee7980e98b1a18332e69ff9e98f4
6
+ metadata.gz: a5e5ec191ae8e123f089c6affb0a1c1c610b430c0b501de926d36d744588a3c12c5818b8e225e9191e9d7d4c844e7638148aac960fb4bcb3d1ebf84c8271266a
7
+ data.tar.gz: 5e43141ae55a43718bfcbd3aa11cb67f6e88f6f9370bf538242d0289a9bcc19011ee0adcb4605b10a03e7db07579f1b34e817bc57c345d787816391a397c2777
@@ -7,11 +7,14 @@ module ActiveMerchant
7
7
 
8
8
 
9
9
  def authorize(money, credit_card, options = {})
10
+ billing_address = options[:billing_address] || options[:address]
11
+
10
12
  post = {}
11
13
  post[:ip] = options[:ip_address] if options[:ip_address].present?
14
+ post[:name] = billing_address[:name] if billing_address.present?
12
15
  add_amount(post, money)
13
16
  add_invoice(post, options)
14
-
17
+ add_address_for_type(:billing, post, credit_card, billing_address) if billing_address
15
18
  if credit_card.is_a? String
16
19
  add_token(post, credit_card)
17
20
  else
@@ -1,5 +1,5 @@
1
1
  module Workarea
2
2
  module Usaepay
3
- VERSION = "1.1.1".freeze
3
+ VERSION = "1.2.0".freeze
4
4
  end
5
5
  end
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.1
4
+ version: 1.2.0
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-22 00:00:00.000000000 Z
11
+ date: 2020-10-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea