swiss-crm-activemerchant 1.0.12 → 1.0.13
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a7f92625b7a5f186ccab8e90cd667aeea08e5fc8a8d80ad7024b20f0a8dfa648
|
4
|
+
data.tar.gz: 3e27b0968134032f402d3875ba037444fd703014675e96f1a259df0b499fe601
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 163d0185b9a65ebfbb0b0a8c024548c11c76cf1bd6dc89c5f39f2a16509db543a737e654e908e1c67e40e0f6aac5af6c65ad815ca7638e7971d76bd8b6e24b4e
|
7
|
+
data.tar.gz: c8764b16df9bb9f6ab0f27ca2e416fc53b04e0c46a91a72b544c6d205d07c0fb401645c38cd4dbcda790833297c33ba0e19e47595e07d78178d725298308173d
|
@@ -313,7 +313,8 @@ module ActiveMerchant #:nodoc:
|
|
313
313
|
response_http_code: @response_http_code,
|
314
314
|
request_endpoint: request_url(relative_url),
|
315
315
|
request_method: :post,
|
316
|
-
request_body
|
316
|
+
request_body:,
|
317
|
+
auth_code: fetch_auth_code(parsed)
|
317
318
|
}
|
318
319
|
|
319
320
|
Response.new(parsed[:succeeded] == 'true', parsed[:message] || parsed[:error], parsed, options)
|
@@ -349,6 +350,10 @@ module ActiveMerchant #:nodoc:
|
|
349
350
|
2
|
350
351
|
end
|
351
352
|
end
|
353
|
+
|
354
|
+
def fetch_auth_code(parsed)
|
355
|
+
parsed.dig(:gateway_specific_response_fields, 'nmi', 'authcode')
|
356
|
+
end
|
352
357
|
end
|
353
358
|
end
|
354
359
|
end
|