diff --git a/app/controllers/payments_controller.rb b/app/controllers/payments_controller.rb index dfe9720d..1462e7ed 100644 --- a/app/controllers/payments_controller.rb +++ b/app/controllers/payments_controller.rb @@ -103,14 +103,13 @@ def sent private def mark_payment_completed - begin - @payment.request_completed - flash.now[:notice] = 'Payment has been received and marked as completed.' + @payment.request_completed + flash.now[:notice] = 'Payment has been received and marked as completed.' + rescue StandardError => e Rails.logger.error("#mark_payment_completed() => error marking payment as received: #{e.message}") flash.now[:error] = "ERROR: #{e.message}" render_flash(flash) - end end def ticket_request_id