pay 11.2.1 → 11.2.2

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: 9358229d8dd4dc100b6c458b89403abe439d63fe8b278618f42337748dd712a6
4
- data.tar.gz: e9b408771b2eedda31bbc24d02645a1986502e5c3ecb672c919a2b9e5173121b
3
+ metadata.gz: 0e194484cea3ae3dee4d9fdded7e5732f182a5e7699128f2f86bfa020284806f
4
+ data.tar.gz: 14b67bbf65d49fb2d7d73fdfbc8519baf5ddcade178ba88bd5b5b30534413d09
5
5
  SHA512:
6
- metadata.gz: 71dfd9b37dac9e1959460a3f1dac220dbc3d9e988609ad8ea2c407c48327bc0b666a635919a67629ba25297bd0646bd634ae1c9d4856c8bd053d6730b300b729
7
- data.tar.gz: e6a70eb1734a76bb7e6ed39875cb6c9213616efb0bd2d9cff7c8562267d87e492a30c7e885b30103487e3343cf577a2895106adfe99edd1c16616ea7e0895fdb
6
+ metadata.gz: b2c00bd4c90a603a91b62202ba36c5cb3cfdd99fcacdd347e274c2bf6c6cb4d813115373e23c9a3e575559d3ec0d37561c8f9a08a60e028415dace786dfcbb16
7
+ data.tar.gz: d62df086e5566fa6c25304c8cdbb54ef9ef401ba0a3023541085c57ab32214287c953d78f1c86be4aeaeb34cc26c29635bc00e4e4b757f7f3579d65fa2ceb02b
@@ -15,7 +15,7 @@ module Pay
15
15
  return unless pay_subscription
16
16
 
17
17
  # Stripe subscription items all have the same interval
18
- price = ::Stripe::Price.retrieve(invoice.lines.first.pricing.price_details.price)
18
+ price = ::Stripe::Price.retrieve({id: invoice.lines.first.pricing.price_details.price}, {stripe_account: event.try(:account)}.compact)
19
19
 
20
20
  # For collection_method=send_invoice, Stripe will send an email and next_payment_attempt will be null
21
21
  # https://docs.stripe.com/api/invoices/object#invoice_object-collection_method
data/lib/pay/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Pay
2
- VERSION = "11.2.1"
2
+ VERSION = "11.2.2"
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: 11.2.1
4
+ version: 11.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Charnes