spree_emerchantpay_genesis 0.1.9 → 0.1.10

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: 6d390e6cc5288100f5e9e6ab7cd9a22aa95f07e20c61a9f10f9acc2b1ae9e271
4
- data.tar.gz: d15382aa75902bf130c603d899049c2a4c9a4f51fb8c9bd36d21e9a83bc44459
3
+ metadata.gz: d03b6c21f5bfb4de3af96b24d466070211f38d4f85d25de2106fe933dc1b2818
4
+ data.tar.gz: 92d30f5025e7b95b4d97cce354b5633eae0d0a6f46f0e587fa360c9319edd73c
5
5
  SHA512:
6
- metadata.gz: 4959a1a4fddc57e9fce2e3b2545759561816299b777346bc54b8c43554364eb7fe845a4bf205b6106d4aacffa8d4582e023bde8efaaea1107e3f29075ac91a9e
7
- data.tar.gz: 2538d617eb79d5d49bdeb8806646acc5d829f5b3df97a40ec944805b1c806860b36874bee7e001945935beb1c580a946d88c97e229c776811d960dba3d813784
6
+ metadata.gz: ff3ef9718a6aa011ab18c37990e1cb03b69d986d1a14aa1e732a61f70dfb21dace28cad49884de31031ca7355e187c5714a4fd9f6c14d0c3ae1a3e2ebc28f8f4
7
+ data.tar.gz: eff7ea1473012e5792a8d75eaa56747bcefaae0179824859e8789ced6b3f5724b9fc2b82d8d74e88372733941ebc741ea6c06b51818150d93333742ad52cbed6
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ 0.1.10
2
+ -----
3
+ **Features**:
4
+
5
+ * Improved plugin compatibility with the others
6
+ * Updated project dependencies
7
+ * Updated Threeds CSS used by the Spree Frontend
8
+
1
9
  0.1.9
2
10
  -----
3
11
  **Features**:
@@ -1,7 +1,7 @@
1
- body {
1
+ body.emp-form-helper-body {
2
2
  padding-top: 50px;
3
3
  }
4
- .center {
4
+ .emp-center {
5
5
  max-width: 819px;
6
6
  height: 423px;
7
7
  background-color: #ffffff;
@@ -12,13 +12,13 @@ body {
12
12
  justify-content: center;
13
13
  align-items: center;
14
14
  }
15
- .center h3 {
15
+ .emp-center h3 {
16
16
  font-family: 'Segoe UI', Arial, sans-serif;
17
17
  text-align: center;
18
18
  font-weight: 500;
19
19
  font-size: 2em;
20
20
  }
21
- .center h3 span {
21
+ .emp-center h3 span {
22
22
  font-family: 'Segoe UI', Arial, sans-serif;
23
23
  display: block;
24
24
  text-align: center;
@@ -26,10 +26,10 @@ body {
26
26
  font-size: 16px;
27
27
  padding-top: 30px;
28
28
  }
29
- .hidden {
29
+ .emp-hidden {
30
30
  display: none;
31
31
  }
32
- .screen-logo
32
+ .emp-screen-logo
33
33
  {
34
34
  width: 152px;
35
35
  height: 50px;
@@ -25,7 +25,8 @@ module Spree
25
25
 
26
26
  # Check if emerchantpay checkout source should be build with the default source_attributes
27
27
  def default_emerchantpay_checkout_source?
28
- payment_method.is_a?(Spree::Gateway::EmerchantpayCheckout) && !source_attributes.present?
28
+ (payment_method&.type == 'Spree::Gateway::EmerchantpayCheckout' ||
29
+ payment_method&.type == 'Spree::Gateway::EcomprocessingCheckout') && !source_attributes.present?
29
30
  end
30
31
 
31
32
  # Check if can build source
@@ -66,11 +66,11 @@
66
66
 
67
67
  <script type="text/javascript">
68
68
  document.addEventListener("DOMContentLoaded", function(){
69
- initBrowserParams()
70
- initCreditCard()
69
+ empInitBrowserParams()
70
+ empInitCreditCard()
71
71
  });
72
72
 
73
- function initCreditCard() {
73
+ function empInitCreditCard() {
74
74
  new Card({
75
75
  form: document.getElementById('checkout_form_payment'),
76
76
  container: '.emerchantpay-card-wrapper',
@@ -95,8 +95,8 @@
95
95
  });
96
96
  }
97
97
 
98
- function initBrowserParams() {
99
- document.getElementById('emp_cc_3dsv2_java_enabled').value = fetchJavaEnabled()
98
+ function empInitBrowserParams() {
99
+ document.getElementById('emp_cc_3dsv2_java_enabled').value = empFetchJavaEnabled()
100
100
  document.getElementById('emp_cc_3dsv2_color_depth').value = screen.colorDepth.toString()
101
101
  document.getElementById('emp_cc_3dsv2_language').value = navigator.language
102
102
  document.getElementById('emp_cc_3dsv2_screen_height').value = screen.height.toString()
@@ -105,7 +105,7 @@
105
105
  document.getElementById('emp_cc_3dsv2_user_agent').value = navigator.userAgent
106
106
  }
107
107
 
108
- function fetchJavaEnabled() {
108
+ function empFetchJavaEnabled() {
109
109
  try {
110
110
  return navigator.javaEnabled();
111
111
  } catch (e) {
@@ -1,12 +1,12 @@
1
1
  <iframe width="1200" height="800" id="threedsMethodIframe" name="threedsMethodIframe" class="hidden">
2
2
  <html>
3
- <body>
3
+ <body class="emp-form-helper-body">
4
4
  </body>
5
5
  </html>
6
6
  </iframe>
7
- <div class="center">
7
+ <div class="emp-center">
8
8
  <div class="content">
9
- <div class="screen-logo">
9
+ <div class="emp-screen-logo">
10
10
  <%= image_tag 'spree/emerchantpay_logo.png', alt: 'emerchantpay ltd.' %>
11
11
  </div>
12
12
  <h3>The payment is being processed
@@ -1,4 +1,4 @@
1
- class AddCheckoutSource < ActiveRecord::Migration[6.1]
1
+ class AddEmerchantpayCheckoutSource < ActiveRecord::Migration[6.1]
2
2
 
3
3
  def up # rubocop:disable Metrics/MethodLength
4
4
  create_table 'emerchantpay_checkout_sources', if_not_exists: true do |t|
@@ -1,7 +1,7 @@
1
1
  # :nocov:
2
2
  module SpreeEmerchantpayGenesis
3
3
 
4
- VERSION = '0.1.9'.freeze
4
+ VERSION = '0.1.10'.freeze
5
5
 
6
6
  end
7
7
  # :nocov:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_emerchantpay_genesis
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - emerchantpay ltd.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-15 00:00:00.000000000 Z
11
+ date: 2024-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: genesis_ruby
@@ -28,20 +28,23 @@ dependencies:
28
28
  name: securerandom
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '0.3'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '0.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: spree_backend
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '4.4'
45
48
  - - ">="
46
49
  - !ruby/object:Gem::Version
47
50
  version: 4.4.0
@@ -49,6 +52,9 @@ dependencies:
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
55
+ - - "~>"
56
+ - !ruby/object:Gem::Version
57
+ version: '4.4'
52
58
  - - ">="
53
59
  - !ruby/object:Gem::Version
54
60
  version: 4.4.0
@@ -56,6 +62,9 @@ dependencies:
56
62
  name: spree_core
57
63
  requirement: !ruby/object:Gem::Requirement
58
64
  requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '4.4'
59
68
  - - ">="
60
69
  - !ruby/object:Gem::Version
61
70
  version: 4.4.0
@@ -63,6 +72,9 @@ dependencies:
63
72
  prerelease: false
64
73
  version_requirements: !ruby/object:Gem::Requirement
65
74
  requirements:
75
+ - - "~>"
76
+ - !ruby/object:Gem::Version
77
+ version: '4.4'
66
78
  - - ">="
67
79
  - !ruby/object:Gem::Version
68
80
  version: 4.4.0
@@ -70,16 +82,16 @@ dependencies:
70
82
  name: spree_extension
71
83
  requirement: !ruby/object:Gem::Requirement
72
84
  requirements:
73
- - - ">="
85
+ - - "~>"
74
86
  - !ruby/object:Gem::Version
75
- version: '0'
87
+ version: '0.1'
76
88
  type: :runtime
77
89
  prerelease: false
78
90
  version_requirements: !ruby/object:Gem::Requirement
79
91
  requirements:
80
- - - ">="
92
+ - - "~>"
81
93
  - !ruby/object:Gem::Version
82
- version: '0'
94
+ version: '0.1'
83
95
  - !ruby/object:Gem::Dependency
84
96
  name: appraisal
85
97
  requirement: !ruby/object:Gem::Requirement
@@ -385,7 +397,7 @@ files:
385
397
  - config/routes.rb
386
398
  - db/migrate/20230927072418_add_emerchantpay_payments.rb
387
399
  - db/migrate/20231128153140_add_callback_status_to_emerchantpay_payments.rb
388
- - db/migrate/20240306152438_add_checkout_source.rb
400
+ - db/migrate/20240306152438_add_emerchantpay_checkout_source.rb
389
401
  - lib/generators/spree_emerchantpay_genesis/install/install_generator.rb
390
402
  - lib/spree_emerchantpay_genesis.rb
391
403
  - lib/spree_emerchantpay_genesis/engine.rb