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 +4 -4
- data/.gitignore +1 -1
- data/.ruby-version +1 -0
- data/lib/figpay_gateway/version.rb +1 -1
- data/lib/nmi_gateway/response.rb +6 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 03aa3ece2a07c3c8357a821ae7132f426d662e5eaf4d83953742fc42edb35946
|
|
4
|
+
data.tar.gz: 8c0ea4eaad5351909cef1f25a41ecebc92fa47b1bb3ba9bf2850dce07d30b104
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 88183bb02b6029d9da56ae4ea077375a57e851bb7de00eeeebfe08284e16a4debeece51f624174e157b062a854f9084fbd0aab88f980c4343b593add65722b29
|
|
7
|
+
data.tar.gz: ed560173896abfe6ea4de038b9d5ff880b45e12598bfc7f26a282936f88f80f10cf165bcbafd989e6fec612fec5637bebe8b223cd8df5a555234c86e49d54eef
|
data/.gitignore
CHANGED
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.4.5
|
data/lib/nmi_gateway/response.rb
CHANGED
|
@@ -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.
|
|
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
|