models/check_payment library