spree_vpago 2.3.1.pre.pre2 → 2.3.1.pre.pre3

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: bf40b3c25765c51449876b91d832f1f34670a0827a5543678e630ff67cb45141
4
- data.tar.gz: 2023ecce0492f44de3b007715d5ffc7449de960efe3c117bd1bd3380bba91425
3
+ metadata.gz: b9f06a7b6b20750f8a0bec1008b87e4149e4f28fb349738a74fc4ab9d1bdefc3
4
+ data.tar.gz: a6f00d08e235027974cbbca511836cc8ad3d4b69f3a6ab56de68d0d778f39cb6
5
5
  SHA512:
6
- metadata.gz: 52dda8f760748e69b0b1f1cc628fa504d1d63984ccf56b61dad3421ce4c28353d6e00b8dc4aecc77593a9b899ed9245ca55f327b90038ca92f5f689038e05e1f
7
- data.tar.gz: b2c383fbcef6fc0b2c91273624648fe8f514b5cf905eb35129c433998db240f59d1e9c2a6fd92583465c79520e6f656635ec93d2700df357d8475acf5c8095d0
6
+ metadata.gz: 22d3e2d3e30092217ce4562c8e82444bdbb953b4a45e2e27f2f364c11ea5fc14bd481015db281996d8a319eefe8b781d3e03f2d18a07c8516b92660cf4d97225
7
+ data.tar.gz: 989df66e5941b5e9edd751b2d11ce4b4c54172615af18809b0204c81fe89e85a8f3001565b3e0eb2375c10f660c0469805da8db9560b6ea72addda72fae56bde
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- spree_vpago (2.3.1.pre.pre2)
4
+ spree_vpago (2.3.1.pre.pre3)
5
5
  faraday
6
6
  google-cloud-firestore
7
7
  spree_api (>= 4.5)
@@ -13,16 +13,14 @@
13
13
  </form>
14
14
 
15
15
  <script>
16
- const isMobile = <%= mobile_user_agent? %>;
17
-
18
16
  const abapayKhqrDeeplink = <%= @payment.payment_method.abapay_khqr_deeplink? %>;
19
- const shouldOpenAbaPayDeeplink = isMobile && <%= @payment.payment_method.open_abapay_deeplink? %>;
17
+ const shouldOpenAbaPayDeeplink = <%= mobile_user_agent? && @payment.payment_method.open_abapay_deeplink? %>;
20
18
 
21
19
  // If the device is not mobile, deeplinks won't work anyway,
22
20
  // so we always open the checkout URL (KHQR page) for desktop users.
23
21
  //
24
22
  // On mobile, only open the checkout URL if explicitly enabled.
25
- const shouldOpenCheckoutUrl = !isMobile || <%= @payment.payment_method.open_checkout_url? %>;
23
+ const shouldOpenCheckoutUrl = <%= !mobile_user_agent? && @payment.payment_method.open_checkout_url? %>;
26
24
 
27
25
  function showRedirectContainer(buttonLabel = null, onClick = null) {
28
26
  const loadingContainer = document.getElementById('vpago_loading_container');
@@ -1,7 +1,7 @@
1
1
  module SpreeVpago
2
2
  module_function
3
3
 
4
- VERSION = '2.3.1-pre2'.freeze
4
+ VERSION = '2.3.1-pre3'.freeze
5
5
 
6
6
  def version
7
7
  Gem::Version.new VERSION
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_vpago
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.pre.pre2
4
+ version: 2.3.1.pre.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - You