spree_vpago 2.2.2.pre.pre32 → 2.2.2.pre.pre33
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 272f52c6bd92bd95dfb5626eb86ffac5d7c8a293739aaac27f58895283f8815f
|
|
4
|
+
data.tar.gz: 00e0a296c7e7219827d40507cc1b38c4b50408525ce763cb701d0d10f293eeb9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 54e7db86977dea5b6297d4e15ffffae5242fbfdc6e7e05e5af13c6427f05b86eaf28b422b9a8b4270ebb0c2cae3efc3eace79349d7b5897ccaf6e6a0ad6fb719
|
|
7
|
+
data.tar.gz: b835de0621b5ec807c83dd0f5bbacc1e5585abb6472a77edd52070d1751758500498f0f241e93c7d43865c4b712c2f2d42cda184bd2e639e42d636f038b967f5
|
data/Gemfile.lock
CHANGED
|
@@ -57,9 +57,6 @@
|
|
|
57
57
|
return response.json();
|
|
58
58
|
})
|
|
59
59
|
.then(function(data) {
|
|
60
|
-
var shouldDelayBeforeOpenCheckoutUrl = false;
|
|
61
|
-
var shouldShowRedirectContainer = false;
|
|
62
|
-
|
|
63
60
|
console.log("[Vpago] checkout response data:", JSON.stringify(data));
|
|
64
61
|
|
|
65
62
|
// When status code is 4 (duplicated transaction),
|
|
@@ -67,11 +64,13 @@
|
|
|
67
64
|
// So in this case, we should hide loading spinner and show redirect container UI
|
|
68
65
|
// While it check transaction status in the background. It will automatically redirect user to the result page after checking.
|
|
69
66
|
if (data.status.code === 4){
|
|
70
|
-
shouldShowRedirectContainer = true;
|
|
71
67
|
showRedirectContainer();
|
|
72
68
|
return;
|
|
73
69
|
}
|
|
74
70
|
|
|
71
|
+
var shouldDelayBeforeOpenCheckoutUrl = false;
|
|
72
|
+
var shouldShowRedirectContainer = false;
|
|
73
|
+
|
|
75
74
|
if (data.abapay_deeplink && shouldOpenAbaPayDeeplink) {
|
|
76
75
|
openDeeplinkUrl(data.abapay_deeplink);
|
|
77
76
|
shouldDelayBeforeOpenCheckoutUrl = true;
|
data/lib/spree_vpago/version.rb
CHANGED