authorizenetsample 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34198052629e4d7415e21dbe494855db055dc7bb
4
- data.tar.gz: 1af4917af8db1460acf98b70edcd935e05d3034c
3
+ metadata.gz: 0e5508c09ec587d74bf0c9c8ae2d1ba88a5dda80
4
+ data.tar.gz: 6db1286e200923bf5b620148b569548a6d3ea232
5
5
  SHA512:
6
- metadata.gz: bf2332578759254b303340c37ed2261a6a42e59517531b84c8ddb1c7f0c96b7a4ac83360d2b81e29a0ac543ce5769ce3708470a77af646ad76bf73b13b223a1a
7
- data.tar.gz: b56c3f3e044dec716d932a651f6cb675bc16fd52c100cf266dd41b9eb98a261faa50049ca94f6044921c60d8b25dd6937ef69d972db0d20375b66a768a1e5456
6
+ metadata.gz: 0d2b7127c1da8a807d52677b3741ee550bf2d7752f846e0334ba688c64ee8d293dd67be8c679bb42a8c52b443f04807c85ca1f6be36dfa07eaf3bbe3954f536b
7
+ data.tar.gz: 033a904704ee8b68c7977b346998d54a8cacc02e27c874044ac3934ff74501f909385a430bb5eb19763c422a5241c2f5b0cceafef77e1ed9dfdfe93a451f00c9
@@ -15,10 +15,18 @@ require 'securerandom'
15
15
  request = CreateTransactionRequest.new
16
16
 
17
17
  billTo = CustomerAddressType.new
18
- # billTo.firstName = "John"
19
- # billTo.lastName = "Doe"
20
- billTo.firstName = customerName.split(" ").first
21
- billTo.lastName = customerName.split(" ").last
18
+ #
19
+ if(customerName != nil)
20
+ {
21
+ billTo.firstName = customerName.split(" ").first
22
+ billTo.lastName = customerName.split(" ").last
23
+ }
24
+ else
25
+ {
26
+ billTo.firstName = "John"
27
+ billTo.lastName = "Doe"
28
+ }
29
+
22
30
  billTo.address = "123 My St"
23
31
  billTo.city = "OurTown"
24
32
  billTo.zip = "98004"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authorizenetsample
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Authorize.Net