Added support for pending payments