Short answer. Not for the bank to accept it and extinguish your debt, but yes for it to count as a gift to you. Payment by a third person with no intent to be reimbursed is deemed a donation, and a donation requires your consent to actually take effect as one.

What the law says

Payment made by a third person who does not intend to be reimbursed by the debtor is deemed to be a donation, which requires the debtor's consent.

Civil Code, Article 1238 — Payment Intended as a Donation. Read the full provision →

Two separate questions hiding in your scenario

Your question actually combines two distinct issues: whether the bank can validly accept your friend's payment, and whether that payment counts as a gift to you. This article answers the second one directly. Because your friend does not intend to be reimbursed by you, the payment is deemed to be a donation, and a donation requires the debtor's consent — meaning your consent — to actually operate as a gift between the two of you.

Why consent matters even for a gift you would presumably welcome

It might seem odd that the law would require your consent to accept help you clearly want, but the rule exists because a donation is a specific legal act with its own consequences, not simply money changing hands. Requiring your consent means you are treated as knowingly and voluntarily accepting your friend's generosity as a gift, rather than the law simply imposing that characterization on the transaction without your agreement, however welcome the assistance might be in practice.

What happens if you never actually consent

If, for whatever reason, you did not give your consent — perhaps you were not consulted, or you would rather treat it as a loan you intend to repay — the payment does not settle into a donation just because your friend intended it that way. In that situation, the arrangement between you and your friend would instead be governed by whatever other rules apply to a payment made on a debtor's behalf without a donation actually being consented to, separate from the donation framework this article describes.

The bank's side of the transaction is unaffected by any of this

None of the consent requirement discussed above stops the bank from validly accepting your friend's payment and treating your debt as satisfied. The consent question is specifically about characterizing the payment as a donation between you and your friend — it does not reach back to unwind or condition the creditor's acceptance, which operates on its own terms once the creditor has taken the payment.

Cases citing this provision

These Supreme Court decisions cite the provision above. We list them so you can read them yourself; the summaries of what each decided are not ours to give.

Related provisions

Note. Statute text quoted on this page is reproduced from the official enactment and is linked to the full provision. The explanation around it is general legal information from Vivas & Nobles Law Office, not legal advice. Whether it applies to your situation depends on facts only a lawyer reviewing them can assess.