Accepting Toyota financing as part of the deal

The dealer reduced the dealer markup on a 2023 rav4 hybrid from $2K to $1K, but now I have to go through Toyota financing. Is this practice legal in Pennsylvania?