Implement new API notifyPendingRefundOfStateChanged and notifyPendingPaymentOfStateChanged to handle PENDING payments