effective_orders 4.5.5 → 4.5.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 108bf2867a6343e481d8e492c4e86fe7e3b1548594441c0b87a95b4a8181047a
|
4
|
+
data.tar.gz: 9d7b4cb4ca78ed441b178e613eb610ec2270a52e56d970683a74fab2b0b21aa2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 581d284694814a347ec8b5f9839e17778927dce8a9be9cbf310ef350fa8cd4f3551ea6190de14720c17be63a0e99a928717bbc64b31bdf58331938729e76a56f
|
7
|
+
data.tar.gz: 1a8d09ecfc10fde8c7ff8524d2b34b30d01348c33d1d06999852638bbb806de98bacbb9aa510fc065b642e2597bfbc08e42fa8bfd3eedeb3328d29f86285b507
|
@@ -8,7 +8,7 @@ this.StripeForm ||= class StripeForm
|
|
8
8
|
@card = null
|
9
9
|
|
10
10
|
initialize: ->
|
11
|
-
@form = $('form[data-stripe-form]').first()
|
11
|
+
@form = $('form[data-stripe-form]:not(.initialized)').first()
|
12
12
|
return false unless @form.length > 0
|
13
13
|
|
14
14
|
@paymentIntent = @form.find("input[name$='[payment_intent_id]']").first()
|
@@ -17,6 +17,7 @@ this.StripeForm ||= class StripeForm
|
|
17
17
|
@card = @stripe.elements().create('card', @style())
|
18
18
|
|
19
19
|
@mount()
|
20
|
+
@form.addClass('initialized')
|
20
21
|
|
21
22
|
style: ->
|
22
23
|
style: {
|
@@ -228,7 +228,7 @@ module Effective
|
|
228
228
|
|
229
229
|
def update_prices!
|
230
230
|
raise('already purchased') if purchased?
|
231
|
-
raise('must be pending') unless pending?
|
231
|
+
raise('must be pending or confirmed') unless pending? || confirmed?
|
232
232
|
|
233
233
|
order_items.each do |item|
|
234
234
|
purchasable = item.purchasable
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.5.
|
4
|
+
version: 4.5.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08-
|
11
|
+
date: 2020-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|