diff --git a/app/mailers/payment_mailer.rb b/app/mailers/payment_mailer.rb index 253d7b794a..b1ba77124f 100644 --- a/app/mailers/payment_mailer.rb +++ b/app/mailers/payment_mailer.rb @@ -8,9 +8,7 @@ class PaymentMailer < Spree::BaseMailer subject = I18n.t('spree.payment_mailer.authorize_payment.subject', distributor: @payment.order.distributor.name) I18n.with_locale valid_locale(@payment.order.user) do - mail(to: payment.order.user.email, - from: from_address, - subject: subject) + mail(to: payment.order.email, from: from_address, subject: subject) end end