fix incorrect syntax which caused logic issue

Closes #5149

update payment_required check to current method