app/mailers/effective/orders_mailer.rb
# This is sent when an admin creates a new order or /admin/orders/new
# Or uses the order action Send Payment Request
This is sent when an admin creates a new order or /admin/orders/new
Or uses the order action Send Payment Request
This is sent when an admin creates a new order or / admin / orders / new Or uses the order action Send Payment Request
def payment_request_to_buyer(order_param)
      return true unless EffectiveOrders.mailer[:send_payment_request_to_buyer]
      @order = (order_param.kind_of?(Effective::Order) ? order_param : Effective::Order.find(order_param))
      mail(
        to: @order.user.email,
        from: EffectiveOrders.mailer[:default_from],
        subject: subject_for_payment_request_to_buyer(@order)
      )
    end
def payment_request_to_buyer ( order_param ) return true unless EffectiveOrders . mailer [ :send_payment_request_to_buyer ] @order = ( order_param . kind_of? ( Effective :: Order ) ? order_param : Effective :: Order . find ( order_param ) ) mail ( to : @order . user . email , from : EffectiveOrders . mailer [ :default_from ] , subject : subject_for_payment_request_to_buyer ( @order ) ) end
This is sent when an admin creates a new order or /admin/orders/new
Or uses the order action Send Payment Request
This is sent when an admin creates a new order or / admin / orders / new Or uses the order action Send Payment Request
order_param