add in a payment check api (bug 865034)