lib/pay/stripe/webhooks/subscription_renewing.rb in pay-4.0.0 vs lib/pay/stripe/webhooks/subscription_renewing.rb in pay-4.0.1

- old
+ new

@@ -13,10 +13,10 @@ # Stripe subscription items all have the same interval price = event.data.object.lines.data.first.price if Pay.send_email?(:subscription_renewing, pay_subscription, price) - Pay::UserMailer.with( + Pay.mailer.with( pay_customer: pay_subscription.customer, pay_subscription: pay_subscription, date: Time.zone.at(event.data.object.next_payment_attempt) ).subscription_renewing.deliver_later end