swiss-activemerchant 1.0.4 → 1.0.6

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: 6bd3579eaee17b94d1a9c93c8429cbb1c6caa89e4148f5d479554c0ea358815b
4
- data.tar.gz: fa466d146593b3123ca8ac0a1b1c78e1e50dc1c8506b61a85355f3948577ca93
3
+ metadata.gz: f495363874a0b5f387167751e3f3bd1345f848f7f538b9ceb3baeccf79253371
4
+ data.tar.gz: fc8e643ef10042f872e82fe4c81244b14a46718b402a4ee8395dc50ae981cac2
5
5
  SHA512:
6
- metadata.gz: ad6a132123b62e98c1f6ecc55358814258d4bb38fc6dc8986f570f99e4de1207a985385d522cdee1f1167e7c2118d69cd0fd436ff0fe91f7e711c606733a11aa
7
- data.tar.gz: 9415403c023df61a4c97d2027e36c1d72e06e312fe9c2b1d8454bd0e7a66b1555797f815cc2b399620970ad7faccf6a374b22e403e51b9b7fc8d3802d20748a2
6
+ metadata.gz: 42272dc8b47779ef0708f35c27ae00539be287cfb72e7d987ed76db684a1767200a7e516fda0c813d488a8e467c88ffe65c5a7b7b8e8c35cf807915c0b4feb82
7
+ data.tar.gz: 2e7138c1098b2112be1b9876aa834ee6a20a019a2bd489780b33b4a9b0a12be8a1e456ee5447035a67945f131e4423740370ef6870a7f65a3bc5a6265fb5dee2
@@ -241,14 +241,14 @@ module ActiveMerchant #:nodoc:
241
241
  end
242
242
 
243
243
  def success_from(response)
244
- response['msg'] == 'success'
244
+ response.dig('data', 'response') == 'approved'
245
245
  end
246
246
 
247
247
  def message_from(succeeded, response)
248
248
  if succeeded
249
249
  'Succeeded'
250
250
  else
251
- response['msg']
251
+ "#{response.dig('data', 'response')&.capitalize}-#{response.dig('data', 'response_body', "card", "processor_response_text")}"
252
252
  end
253
253
  end
254
254
 
@@ -1,3 +1,3 @@
1
1
  module ActiveMerchant
2
- VERSION = '1.0.4'
2
+ VERSION = '1.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: swiss-activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-13 00:00:00.000000000 Z
11
+ date: 2024-11-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport