added completed flag to payment