spree_vpago 2.0.5.pre.beta → 2.0.5.pre.beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env.example +8 -0
- data/Gemfile.lock +3 -3
- data/app/views/spree/vpago_payments/forms/spree/gateway/_vattanac_mini_app.html.erb +34 -30
- data/lib/spree_vpago/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50ecf7e2890201720798b26641794b6b4f71d036477172dc0a7b9b1d14c0d5f5
|
4
|
+
data.tar.gz: 94daf3d4fb79d2eb7977f122862aa3054dbf914566c1eccfaf78895df796bd7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 82dfcafbfd036e36017b33e499699a9aa4cba4d2533314cedf26b8c326195e8bfa1556aeb42b8afda0ba1812441cf6b37bf56cb654303f1c8af456ed62bca4c7
|
7
|
+
data.tar.gz: 3517b8ce544771d41f88955221605dc22dd37a9626ddb4ca309272df9ab83118ab7651f4438fb714913ad7bda4ee718ff1f080ba8f8210664815992804bf4e42
|
data/.env.example
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
spree_vpago (2.0.5.pre.
|
4
|
+
spree_vpago (2.0.5.pre.beta2)
|
5
5
|
faraday
|
6
6
|
google-cloud-firestore
|
7
7
|
spree_api (>= 4.5)
|
@@ -188,7 +188,7 @@ GEM
|
|
188
188
|
faraday-http-cache (2.5.0)
|
189
189
|
faraday (>= 0.8)
|
190
190
|
faraday-net_http (3.0.2)
|
191
|
-
faraday-retry (2.3.
|
191
|
+
faraday-retry (2.3.2)
|
192
192
|
faraday (~> 2.0)
|
193
193
|
ffaker (2.21.0)
|
194
194
|
ffi (1.15.5)
|
@@ -259,7 +259,7 @@ GEM
|
|
259
259
|
multi_json (~> 1.11)
|
260
260
|
os (>= 0.9, < 2.0)
|
261
261
|
signet (>= 0.16, < 2.a)
|
262
|
-
grpc (1.
|
262
|
+
grpc (1.73.0)
|
263
263
|
google-protobuf (>= 3.25, < 5.0)
|
264
264
|
googleapis-common-protos-types (~> 1.0)
|
265
265
|
hashdiff (1.1.0)
|
@@ -8,13 +8,7 @@
|
|
8
8
|
display: none;">
|
9
9
|
</p>
|
10
10
|
|
11
|
-
<h1 id="status">THIS IS CURRENT STATE</h1>
|
12
|
-
<p id="reason_code"></p>
|
13
|
-
<p id="processing"></p>
|
14
|
-
<p id="reason_message"></p>
|
15
|
-
|
16
11
|
<script>
|
17
|
-
|
18
12
|
function detectMobileOS() {
|
19
13
|
const ua = navigator.userAgent || navigator.vendor || window.opera;
|
20
14
|
if (/iPad|iPhone|iPod/.test(ua) && !window.MSStream) return 'iOS';
|
@@ -44,43 +38,53 @@
|
|
44
38
|
window.listenToProcessingState({
|
45
39
|
firebaseConfigs: firebaseConfigs,
|
46
40
|
documentReferencePath: "<%= @payment.user_informer.document_reference_path %>",
|
41
|
+
|
47
42
|
onPaymentIsProcessing: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
43
|
+
console.log("Status: Payment is processing");
|
44
|
+
console.log("Reason Code:", reasonCode);
|
45
|
+
console.log("Processing:", processing ? "Processing..." : "No more process.");
|
46
|
+
console.log("Reason Message:", reasonMessage);
|
52
47
|
},
|
48
|
+
|
53
49
|
onOrderIsProcessing: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
50
|
+
console.log("Status: Order is processing");
|
51
|
+
console.log("Reason Code:", reasonCode);
|
52
|
+
console.log("Processing:", processing ? "Processing..." : "No more process.");
|
53
|
+
console.log("Reason Message:", reasonMessage);
|
58
54
|
},
|
55
|
+
|
59
56
|
onOrderIsCompleted: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
57
|
+
console.log("Status: Order is completed");
|
58
|
+
console.log("Reason Code:", reasonCode);
|
59
|
+
console.log("Processing:", processing ? "Processing..." : "No more process.");
|
60
|
+
console.log("Reason Message:", reasonMessage);
|
64
61
|
},
|
62
|
+
|
65
63
|
onOrderProcessFailed: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
64
|
+
console.log("Status: Order process failed");
|
65
|
+
console.log("Reason Code:", reasonCode);
|
66
|
+
console.log("Processing:", processing ? "Processing..." : "No more process.");
|
67
|
+
console.log("Reason Message:", reasonMessage);
|
70
68
|
},
|
69
|
+
|
71
70
|
onPaymentIsRefunded: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
71
|
+
console.log("Status: Payment is refunded");
|
72
|
+
console.log("Reason Code:", reasonCode);
|
73
|
+
console.log("Processing:", processing ? "Processing..." : "No more process.");
|
74
|
+
console.log("Reason Message:", reasonMessage);
|
76
75
|
},
|
76
|
+
|
77
77
|
onPaymentProcessFailed: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
78
|
+
console.log("Status: Payment process failed");
|
79
|
+
console.log("Reason Code:", reasonCode);
|
80
|
+
console.log("Processing:", processing ? "Processing..." : "No more process.");
|
81
|
+
console.log("Reason Message:", reasonMessage);
|
82
82
|
},
|
83
|
+
|
83
84
|
onCompleted: function (orderState, paymentState, processing, reasonCode, reasonMessage) {
|
85
|
+
console.log("Status: Completed — redirecting to success URL");
|
86
|
+
console.log("Reason Code:", reasonCode);
|
87
|
+
console.log("Reason Message:", reasonMessage);
|
84
88
|
let successPath = "<%= @payment.success_url %>";
|
85
89
|
window.location.href = successPath;
|
86
90
|
},
|
data/lib/spree_vpago/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_vpago
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.5.pre.
|
4
|
+
version: 2.0.5.pre.beta2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- You
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-06-
|
11
|
+
date: 2025-06-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|