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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aeee41b07bfa798c33c4d05b73c7035905f562d45cec48564d543e371ff53a7e
4
- data.tar.gz: 7b7b1695db44d1f3e00637431f91be10e12c54541921f4b555d83253b981dc04
3
+ metadata.gz: 6bd608f9c9d71623d2c9caab7377cc9bd370fb0c88edf5771b63e4ee13c1d4ee
4
+ data.tar.gz: '082e316367a83d6152de5fbe31e98dd57a42c2ea32004d1f1cc364afbad6a628'
5
5
  SHA512:
6
- metadata.gz: ee0f52b211a5894d00d7226d486ccdbce5ca8f18a66a1fa1fcd7c37344bd842f0672cf4c4070d7ee12684b8c64801fcd8c8674fa22d17f7204e95609f3b5cfa0
7
- data.tar.gz: 4dcf8f4142c67ae179749e955baff64b454c2fc2eba3664727fd41572d22b0e6c1913cac9d5bc2c063e4c484ade0663b401b6d44d283a203c65145f678d28e77
6
+ metadata.gz: 1b430133c1e930e1cd730e51ae6f87658f62901021e1a02215d6a05550a600e82c5d24399e7a148730334a56cc01cd9cdc49693d3f97f9b8655ba80fa34db224
7
+ data.tar.gz: 6a6250a620a86a714aa6cf72b0b5433dbe4fc27c7e603452623d1d1d799335c9570af37a9452c1ef381263eab50aef7cffbc7059897f35d942590478484f7863
@@ -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(&:retry_failed_payments)
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
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "6.3.0"
2
+ VERSION = "6.3.1"
3
3
  end
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.0
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.1
171
+ rubygems_version: 3.4.3
172
172
  signing_key:
173
173
  specification_version: 4
174
174
  summary: Payments engine for Ruby on Rails