pay 6.3.0 → 6.3.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pay might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/models/pay/customer.rb +1 -1
- data/lib/pay/stripe/subscription.rb +1 -0
- data/lib/pay/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: 6bd608f9c9d71623d2c9caab7377cc9bd370fb0c88edf5771b63e4ee13c1d4ee
|
4
|
+
data.tar.gz: '082e316367a83d6152de5fbe31e98dd57a42c2ea32004d1f1cc364afbad6a628'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1b430133c1e930e1cd730e51ae6f87658f62901021e1a02215d6a05550a600e82c5d24399e7a148730334a56cc01cd9cdc49693d3f97f9b8655ba80fa34db224
|
7
|
+
data.tar.gz: 6a6250a620a86a714aa6cf72b0b5433dbe4fc27c7e603452623d1d1d799335c9570af37a9452c1ef381263eab50aef7cffbc7059897f35d942590478484f7863
|
data/app/models/pay/customer.rb
CHANGED
@@ -96,7 +96,7 @@ module Pay
|
|
96
96
|
# Attempts to pay all past_due subscription invoices to bring them back to active state
|
97
97
|
# Pass in `statuses: []` if you would like to only include specific subscription statuses
|
98
98
|
def retry_past_due_subscriptions!(status: [:past_due])
|
99
|
-
subscriptions.where(status: Array.wrap(status)).each(&:
|
99
|
+
subscriptions.where(status: Array.wrap(status)).each(&:pay_open_invoices)
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
@@ -315,6 +315,7 @@ module Pay
|
|
315
315
|
raise Pay::Stripe::Error, e
|
316
316
|
end
|
317
317
|
|
318
|
+
# Looks up open invoices for a subscription and attempts to pay them
|
318
319
|
def pay_open_invoices
|
319
320
|
::Stripe::Invoice.list({subscription: processor_id, status: :open}, stripe_options).auto_paging_each do |invoice|
|
320
321
|
retry_failed_payment(payment_intent_id: invoice.payment_intent)
|
data/lib/pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.3.
|
4
|
+
version: 6.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Charnes
|
@@ -168,7 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
168
168
|
- !ruby/object:Gem::Version
|
169
169
|
version: '0'
|
170
170
|
requirements: []
|
171
|
-
rubygems_version: 3.4.
|
171
|
+
rubygems_version: 3.4.3
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Payments engine for Ruby on Rails
|