Sha256: a02695652e5bfe452ddf97391a711c582b56460b5eb2d45b07828b962e0ab884

Contents?: true

Size: 310 Bytes

Versions: 2

Compression:

Stored size: 310 Bytes

Contents

module PaidUp
  class SubscriptionMailer < PaidUpMailer
    def payment_failed_email(invoice)
      @invoice = invoice
      @user = User.find_by_stripe_id(@invoice.customer)
      mail(to: @user.email, subject: :your_site_subscription_payment_failed.l(site: PaidUp.configuration.site_name))
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
paid_up-0.9.3 app/mailers/paid_up/subscription_mailer.rb
paid_up-0.9.2 app/mailers/paid_up/subscription_mailer.rb