Whenever the proceeds of, or payments under, a life insurance policy or annuity contract issued by a life insurance company become payable and the insurer makes payment thereof in accordance with the terms of the policy or contract, or in accordance with any written assignment thereto, the payee or beneficiary shall be entitled to receive the proceeds or payments and to give full acquittance therefor, and the payment shall fully discharge the insurer from all claims under the policy or contract unless, before payment is made, the insurer has received at its home office written notice by or on behalf of some other person that the other person claims to be entitled to the payment or some interest in the policy or contract. Nothing contained in this section shall affect any claim or right to any policy or contract or the proceeds thereof or payment thereunder as between persons other than the insurer.