Cal. Civ. Code § 1725
(a) Unless permitted under subdivision (c), no person accepting a negotiable instrument as payment in full or in part for goods or services sold or leased at retail shall do any of the following:
(b) For the purposes of this section, the following terms have the following meanings:
(c) This section does not prohibit any person from doing any of the following:
(2) Requesting, but not requiring, a purchaser to voluntarily display a credit card as an indicia of creditworthiness or financial responsibility, or as an additional identification, provided the only information concerning the credit card which is recorded is the type of credit card displayed, the issuer of the card, and the expiration date of the card. All retailers that request the display of a credit card pursuant to this paragraph shall inform the customer, by either of the following methods, that displaying the credit card is not a requirement for check writing: