We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252db2a commit f985f8cCopy full SHA for f985f8c
lib/pay/stripe/webhooks/subscription_renewing.rb
@@ -15,7 +15,7 @@ def call(event)
15
return unless pay_subscription
16
17
# Stripe subscription items all have the same interval
18
- price = ::Stripe::Price.retrieve(invoice.lines.first.pricing.price_details.price)
+ price = ::Stripe::Price.retrieve({id: invoice.lines.first.pricing.price_details.price}, {stripe_account: event.try(:account)}.compact)
19
20
# For collection_method=send_invoice, Stripe will send an email and next_payment_attempt will be null
21
# https://docs.stripe.com/api/invoices/object#invoice_object-collection_method
0 commit comments