update payment jobs delivery methods

This commit is contained in:
Andy Brett
2021-01-21 09:13:02 -08:00
parent d76db9ee51
commit affc82b2b5
2 changed files with 2 additions and 2 deletions

View File

@@ -159,7 +159,7 @@ module Spree
return unless @payment.cvv_response_message.present?
PaymentMailer.authorize_payment(@payment).deliver
PaymentMailer.authorize_payment(@payment).deliver_later
raise Spree::Core::GatewayError, I18n.t('action_required')
end
end

View File

@@ -124,7 +124,7 @@ module Spree
def resend_authorization_email!
return unless cvv_response_message.present?
PaymentMailer.authorize_payment(self).deliver
PaymentMailer.authorize_payment(self).deliver_later
end
def payment_source