MCPcopy Index your code
hub / github.com/freeCodeCamp/freeCodeCamp / addDonation

Function addDonation

client/src/utils/ajax.ts:284–286  ·  view source on GitHub ↗
(body: Donation)

Source from the content-addressed store, hash-verified

282// TODO: Verify if the body has and needs this Donation type. The api seems to
283// just need the body to exist, but doesn't seem to use the properties.
284export function addDonation(body: Donation): Promise<ResponseWithData<void>> {
285 return post('/donate/add-donation', body);
286}
287
288export function updateStripeCard() {
289 return put('/donate/update-stripe-card', {});

Callers

nothing calls this directly

Calls 1

postFunction · 0.70

Tested by

no test coverage detected