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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce3933d8c3bbc17e45b003dc16033a9f0d4802b1baac54b09b938a8bfaf09c85
|
4
|
+
data.tar.gz: af7a7d9c97bf5e10daa9b4f873e62b72f031169332c4846c7e3200f90bc97775
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
310
|
-
{ data: { customer: {} } }.merge!(
|
310
|
+
def build_payload(params)
|
311
|
+
{ data: { customer: {} } }.merge!(params.fetch(:payload, {}))
|
311
312
|
end
|
312
313
|
|
313
314
|
def base_headers(custom = {})
|
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
|
+
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-
|
11
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemerchant
|