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 +4 -4
- data/CHANGELOG.md +8 -0
- data/app/assets/stylesheets/spree/emerchantpay_threeds.css +6 -6
- data/app/models/spree/payment_decorator.rb +2 -1
- data/app/views/spree/checkout/payment/_emerchantpay_direct.html.erb +6 -6
- data/app/views/spree/emerchantpay_threeds/method_continue.html.erb +3 -3
- data/db/migrate/{20240306152438_add_checkout_source.rb → 20240306152438_add_emerchantpay_checkout_source.rb} +1 -1
- data/lib/spree_emerchantpay_genesis/version.rb +1 -1
- metadata +23 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d03b6c21f5bfb4de3af96b24d466070211f38d4f85d25de2106fe933dc1b2818
|
4
|
+
data.tar.gz: 92d30f5025e7b95b4d97cce354b5633eae0d0a6f46f0e587fa360c9319edd73c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff3ef9718a6aa011ab18c37990e1cb03b69d986d1a14aa1e732a61f70dfb21dace28cad49884de31031ca7355e187c5714a4fd9f6c14d0c3ae1a3e2ebc28f8f4
|
7
|
+
data.tar.gz: eff7ea1473012e5792a8d75eaa56747bcefaae0179824859e8789ced6b3f5724b9fc2b82d8d74e88372733941ebc741ea6c06b51818150d93333742ad52cbed6
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
-
|
70
|
-
|
69
|
+
empInitBrowserParams()
|
70
|
+
empInitCreditCard()
|
71
71
|
});
|
72
72
|
|
73
|
-
function
|
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
|
99
|
-
document.getElementById('emp_cc_3dsv2_java_enabled').value =
|
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
|
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
|
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.
|
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-
|
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/
|
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
|