the court at the return date, the court shall continue the action for unlawful detainer for 10 days following the return date for payment to the landlord of all rent due and owing as of the return date, including late charges, attorney fees, and court costs, and dismiss the action upon such payment. Should the landlord not receive full payment of all rent due and owing as of the return date, including late charges, attorney fees, and court costs, within 10 days of the return date, the court shall, without further evidence, grant to the landlord judgment for all amounts due and immediate possession of the premises. For purposes of this section, "redemption tender" means a written commitment to pay all rent due and owing as of the return date, including late charges, attorney fees, and court costs, by a local government or nonprofit entity within 10 days of such return date.
C. In cases of unlawful detainer, a tenant, or any third party on behalf of a tenant, may pay the landlord or the landlord's attorney or pay into court all (i) rent due and owing as of the court date as contracted for in the rental agreement, (ii) other charges and fees as contracted for in the rental agreement, (iii) late charges contracted for in the rental agreement and as provided by law, (iv) reasonable attorney fees as contracted for in the rental agreement and as provided by law, and (v) costs of the proceeding as provided by law, at which time the unlawful detainer proceeding shall be dismissed, unless there are bases for the entry of an order of possession other than nonpayment of rent stated in the unlawful detainer action filed by the landlord.
D. If such payment has not been made as of the return date for the unlawful detainer, the tenant, or any third party on behalf of the tenant, may