nexio_activemerchant 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75aed4f978138206f5c7fc033bb0e0a81faf69dac593a26a68661a265de059b5
4
- data.tar.gz: 97fc92fe19530378d0d86d9dc625310ac1de2db40dca87264a806c97facc0116
3
+ metadata.gz: ce3933d8c3bbc17e45b003dc16033a9f0d4802b1baac54b09b938a8bfaf09c85
4
+ data.tar.gz: af7a7d9c97bf5e10daa9b4f873e62b72f031169332c4846c7e3200f90bc97775
5
5
  SHA512:
6
- metadata.gz: 8f2ab0d0573a9311d7f3753839f39fe9581aab93cf9e30711472edce47f8569365262dec46a09375607ea99f0d9fdbae287a42635bcf748885e836a8353830d3
7
- data.tar.gz: 870d45d255eeb17b8ab5d84f80f06e8f05950fb32671ced3a14aa35d816131d85209b531c45a1d3e7523a9f649433d589de81344a74bd289510b0576e392623b
6
+ metadata.gz: fcfa1414b66c46fcbaf64f3e0d3bc95b3c6bd4097325370084c4696282f4d659b7146d1f43d9991c38f4090a6223594fe2ed1c2ca1c8c62c40a10fe48937cd54
7
+ data.tar.gz: 12695b194b5180d20fe6961ee48f3cf0697823e3a2ea08360c16a5202075d8c24c8e4aa16caceb50f6c1f584b1d43476db640bc3cd1af78fc3c06dab69a04b40
@@ -254,6 +254,7 @@ module ActiveMerchant
254
254
  network_transaction_id: payload['id']
255
255
  )
256
256
  rescue ResponseError => e
257
+ logger&.error e.response.body
257
258
  error_payload = parse(e.response.body)
258
259
  Response.new(
259
260
  false,
@@ -277,7 +278,7 @@ module ActiveMerchant
277
278
  end
278
279
 
279
280
  def post_data(_action, parameters = {})
280
- parameters.to_json
281
+ { merchantId: options[:merchant_id] }.merge(parameters).to_json
281
282
  end
282
283
 
283
284
  def commit_action_url(action, _parameters)
@@ -306,8 +307,8 @@ module ActiveMerchant
306
307
  CVVResult.new(data.fetch('gatewayMessage', {}).fetch('cvvresponse', nil))
307
308
  end
308
309
 
309
- def build_payload(options)
310
- { data: { customer: {} } }.merge!(options.fetch(:payload, {}))
310
+ def build_payload(params)
311
+ { data: { customer: {} } }.merge!(params.fetch(:payload, {}))
311
312
  end
312
313
 
313
314
  def base_headers(custom = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NexioActivemerchant
4
- VERSION = '0.2.4'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexio_activemerchant
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whitespectre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-09-03 00:00:00.000000000 Z
11
+ date: 2021-09-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant