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: afeb9da41404fe5632da620512f825f3d60455ed96db974e73cedcf65d5275a6
4
- data.tar.gz: 4d2b41b33e593bc2a579acc276e3450afaed25743a989762093379b0802374b3
3
+ metadata.gz: a7f92625b7a5f186ccab8e90cd667aeea08e5fc8a8d80ad7024b20f0a8dfa648
4
+ data.tar.gz: 3e27b0968134032f402d3875ba037444fd703014675e96f1a259df0b499fe601
5
5
  SHA512:
6
- metadata.gz: fad1f595b8d179bf973c630b79f9a557fec586f97172a810e9dd14a82302607cbe4447b68b482ba274a5044e4ea369878e94e7d777801da6c632195ded2735db
7
- data.tar.gz: deb8b415065bff4199631f8ffce3ecc81694303c94fad5d7339610b6c7c27e1b2766543c7b03e366ea5ed5c229e328e49a106cc1582395549e92494f86ff9fc5
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
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = '1.0.12'
2
+ VERSION = '1.0.13'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swiss-crm-activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.12
4
+ version: 1.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke