effective_orders 4.4.6 → 4.4.7
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: e1292868ad11472eacfd9b3d03b373044bf2655c0f8d34db31819beb86a02bfb
|
4
|
+
data.tar.gz: d67604e57e3d44a36e04b15e7822a0c9495701faf5885353aa82065cd48c0755
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4cb72e5daa0673e071399792a4b5e92d1642c107b4bee7694ace594e3db7510754b8624105caa5d629704293a2e5211a35847d145d7690269900446150177faa
|
7
|
+
data.tar.gz: 0a641944b932a2d635a063d43a52742213cb4a1717b102f96aa97c6a303e62c14780e946e34f5d4f3c7a706dc31f39dcf1c83fc8c4762e09fbcdc5d1f5a1edea
|
@@ -42,12 +42,16 @@ class StripeForm {
|
|
42
42
|
|
43
43
|
let payment = this.shouldUseNewCard() ? this.useNewCard() : this.useExistingCard();
|
44
44
|
|
45
|
+
$.active = $.active + 1;
|
46
|
+
|
45
47
|
payment.then((result) => {
|
46
48
|
if (result.error) {
|
47
49
|
this.errorPayment(result.error)
|
48
50
|
} else if (result.paymentIntent.status == 'succeeded') {
|
49
51
|
this.submitPayment(result.paymentIntent);
|
50
52
|
}
|
53
|
+
}).then((result) => {
|
54
|
+
$.active = $.active - 1;
|
51
55
|
});
|
52
56
|
}
|
53
57
|
|
@@ -504,7 +504,7 @@ module Effective
|
|
504
504
|
end
|
505
505
|
|
506
506
|
def update_purchasables_purchased_order!
|
507
|
-
order_items.each { |oi| oi.purchasable
|
507
|
+
order_items.each { |oi| oi.purchasable&.update_column(:purchased_order_id, self.id) }
|
508
508
|
end
|
509
509
|
|
510
510
|
def run_purchasable_callbacks(name)
|
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.4.
|
4
|
+
version: 4.4.7
|
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-04-
|
11
|
+
date: 2020-04-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|