figpay_gateway 1.0.0 → 1.0.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
  SHA256:
3
- metadata.gz: f0a09ef25c0277c79ba548c7dea0845e8bcbdc85b98ce4b744f68b38cf3f6a7c
4
- data.tar.gz: 8bc4a5747095180ee934641f4a7519a1770bffa72336b38a5a6c6a5896bb21a1
3
+ metadata.gz: 03aa3ece2a07c3c8357a821ae7132f426d662e5eaf4d83953742fc42edb35946
4
+ data.tar.gz: 8c0ea4eaad5351909cef1f25a41ecebc92fa47b1bb3ba9bf2850dce07d30b104
5
5
  SHA512:
6
- metadata.gz: 586f04f067969ed8ed10712642c0a35a0cae7db3e312f92a2b1fa492ae8ca06e5ebe2e5b08899ef1251cf32954c28cab75e26d8f07305f4ec381e31086990749
7
- data.tar.gz: dced5d25b7e481f951bb6e29236b5536eb35822c5ba666e1a817b1065f1c8a765bb70cc997e843e1517d654773031319aaa9db982084b1cd007fc9c83508f9f8
6
+ metadata.gz: 88183bb02b6029d9da56ae4ea077375a57e851bb7de00eeeebfe08284e16a4debeece51f624174e157b062a854f9084fbd0aab88f980c4343b593add65722b29
7
+ data.tar.gz: ed560173896abfe6ea4de038b9d5ff880b45e12598bfc7f26a282936f88f80f10cf165bcbafd989e6fec612fec5637bebe8b223cd8df5a555234c86e49d54eef
data/.gitignore CHANGED
@@ -17,7 +17,7 @@ mkmf.log
17
17
 
18
18
  .DS_Store
19
19
  .env
20
- .ruby-version
20
+ # .ruby-version # used in ci.yml
21
21
  .ruby-gemset
22
22
 
23
23
  # Editor tags files
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.4.5
@@ -1,3 +1,3 @@
1
1
  module FigpayGateway
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,7 +1,7 @@
1
1
  module NMIGateway
2
2
  class Response
3
3
 
4
- attr_accessor :response, :success, :code, :api_type, :transactions, :customers, :response_text, :response_message, :customer_vault_id, :subscription_id, :plan_id, :plan_amount, :orderid, :transactionid, :authcode, :response_code
4
+ attr_accessor :response, :success, :code, :api_type, :transactions, :customers, :response_text, :response_message, :customer_vault_id, :subscription_id, :plan_id, :plan_amount, :orderid, :transactionid, :authcode, :response_code, :avs_response_code, :cvv_response_code, :response_code_message, :avs_response_code_message, :cvv_response_code_message
5
5
 
6
6
  def initialize(response, api_type)
7
7
  @response = response
@@ -39,6 +39,11 @@ module NMIGateway
39
39
  @subscription_id = parsed['subscription_id'].first if parsed['subscription_id'].first.present?
40
40
  @orderid = parsed['orderid'].first if parsed['orderid'].first.present?
41
41
  @transactionid = parsed['transactionid'].first if parsed['transactionid'].first.present?
42
+ @avs_response_code = parsed['avsresponse'].first if parsed['avsresponse']&.first.present?
43
+ @cvv_response_code = parsed['cvvresponse'].first if parsed['cvvresponse']&.first.present?
44
+ @response_code_message = response_codes.dig(response_code) if response_code.present?
45
+ @avs_response_code_message = avs_response_codes.dig(avs_response_code) if avs_response_code.present?
46
+ @cvv_response_code_message = cvv_response_codes.dig(cvv_response_code) if cvv_response_code.present?
42
47
  parsed
43
48
  end
44
49
  else
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: figpay_gateway
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Eggett
@@ -217,6 +217,7 @@ files:
217
217
  - ".env.sample"
218
218
  - ".github/workflows/ci.yml"
219
219
  - ".gitignore"
220
+ - ".ruby-version"
220
221
  - ".tool-versions"
221
222
  - Gemfile
222
223
  - Guardfile