diff --git a/app/services/payment_requests/create_service.rb b/app/services/payment_requests/create_service.rb index e99ddeb75c67..03925aa4ef9c 100644 --- a/app/services/payment_requests/create_service.rb +++ b/app/services/payment_requests/create_service.rb @@ -67,7 +67,7 @@ def check_preconditions end def customer - @customer ||= organization.customers.find_by(external_id: params[:external_customer_id]) + @customer ||= organization.customers.active.find_by(external_id: params[:external_customer_id]) end def invoices