mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-29 21:17:17 +00:00
15 lines
392 B
Ruby
15 lines
392 B
Ruby
# frozen_string_literal: true
|
|
|
|
class PaymentMailer < Spree::BaseMailer
|
|
include I18nHelper
|
|
|
|
def authorize_payment(payment)
|
|
@payment = payment
|
|
subject = I18n.t('spree.payment_mailer.authorize_payment.subject',
|
|
distributor: @payment.order.distributor.name)
|
|
mail(to: payment.order.user.email,
|
|
from: from_address,
|
|
subject: subject)
|
|
end
|
|
end
|