app/mailers/effective/orders_mailer.rb
# Sent by the invoice.payment_failed webhook event
Sent by the invoice.payment_failed webhook event
Sent by the invoice . payment_failed webhook event
def subscription_canceled(customer_param)
      return true unless EffectiveOrders.mailer[:send_subscription_canceled]
      @customer = (customer_param.kind_of?(Effective::Customer) ? customer_param : Effective::Customer.find(customer_param))
      mail(
        to: @customer.user.email,
        from: EffectiveOrders.mailer[:default_from],
        subject: subject_for_subscription_canceled(@customer)
      )
    end
def subscription_canceled ( customer_param ) return true unless EffectiveOrders . mailer [ :send_subscription_canceled ] @customer = ( customer_param . kind_of? ( Effective :: Customer ) ? customer_param : Effective :: Customer . find ( customer_param ) ) mail ( to : @customer . user . email , from : EffectiveOrders . mailer [ :default_from ] , subject : subject_for_subscription_canceled ( @customer ) ) end
Sent by the invoice.payment_failed webhook event
Sent by the invoice . payment_failed webhook event
customer_param