nexio_activemerchant 0.4.1 → 0.4.3

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: 8267f1055cb04161ae87bca490199fbaf4ab95a67eb0232b956590fa87cfb0e0
4
- data.tar.gz: 24984f56bd8933454549c8eadacfc1df478e72beeb083d2f0ea542fc2076b59d
3
+ metadata.gz: fcbb427a634cbaffdda20498f09d4aa0112fba8212b61c65c93cbca7340c7015
4
+ data.tar.gz: 401a8a30107466ab735ea426a37ea1533f366b42056a57180b3c75484c76555d
5
5
  SHA512:
6
- metadata.gz: b888126145cc8f56083f141b46c11b4a865722a713e655381c06205268559783facc7f78f62df2098ff9cb9bc7ca41c3fc668742aeaab94635265e746c6680d4
7
- data.tar.gz: 89a14ea14571922157ec962c845ae9c0b254e63085fd4ab4763c5d0d98a20970789901c226c444935b82eb89b835e74f6175e005910d7f3c38df5e7efba95d94
6
+ metadata.gz: 1ef916e4e97fcf717232ab25053f38dda4cec170bb210c79cfa795abee65b23220142ab95bc6bfab3cdd65f06c7d2dd402e9839dde8b3a8c94731c202748f6de
7
+ data.tar.gz: 441c25a81685792c34e32be7fa99631a6f9b0d07479ae2ef69a999c7a713cdc3b08772c0160f22c3b66802bd6bdd01023d63e2159f0077028ac35921e68add82
data/.gitignore CHANGED
@@ -7,3 +7,6 @@
7
7
  /spec/reports/
8
8
  /tmp/
9
9
  /Gemfile.lock
10
+
11
+ # RubyMine files
12
+ .idea/
@@ -9,7 +9,7 @@ module ActiveMerchant
9
9
  self.base_path = '/apm/v3'
10
10
  self.abstract_class = false
11
11
 
12
- OneTimeToken = Struct.new(:token, :iframe_url, :redirect_urls, :button_urls)
12
+ OneTimeToken = Struct.new(:token, :iframe_url, :script_url, :redirect_urls, :button_urls)
13
13
 
14
14
  def generate_token(money, options = {})
15
15
  post = build_payload(options)
@@ -25,6 +25,7 @@ module ActiveMerchant
25
25
  OneTimeToken.new(
26
26
  resp.params['token'],
27
27
  resp.params['expressIFrameUrl'],
28
+ resp.params['scriptUrl'],
28
29
  map_urls(resp.params['redirectUrls']),
29
30
  map_urls(resp.params['buttonIFrameUrls'])
30
31
  )
@@ -80,7 +80,6 @@ module ActiveMerchant
80
80
  result[:data] ||= {}
81
81
  result[:data][:customer] ||= {}
82
82
  result[:processingOptions] ||= {}
83
- result[:processingOptions][:merchantId] ||= options[:merchant_id]
84
83
  result[:processingOptions][:verboseResponse] = true if test?
85
84
  result
86
85
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NexioActivemerchant
4
- VERSION = '0.4.1'
4
+ VERSION = '0.4.3'
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.4.1
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Whitespectre
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-11-15 00:00:00.000000000 Z
11
+ date: 2023-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemerchant
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  requirements: []
89
- rubygems_version: 3.1.2
89
+ rubygems_version: 3.1.6
90
90
  signing_key:
91
91
  specification_version: 4
92
92
  summary: ActiveMechant gateway for Nexio