No bank shall declare or pay any dividend to an amount greater than its retained earnings, without approval from the director. The director shall in his or her discretion have the power to require any bank to suspend the payment of any and all dividends until all requirements that may have been made by the director shall have been complied with; and upon such notice to suspend dividends no bank shall thereafter declare or pay any dividends until such notice has been rescinded in writing. A dividend is payable in cash, property, or capital stock, but the restrictions on the payment of a dividend (other than restrictions imposed by the director pursuant to his or her authority to require the suspension of the payment of any or all dividends) do not apply to a dividend payable by the bank solely in its own capital stock. For purposes of this section, "retained earnings" shall be determined by generally accepted accounting principles.