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

Function createStripePaymentIntent

client/src/utils/ajax.ts:330–337  ·  view source on GitHub ↗
(body: {
  email: string | undefined;
  name: string | undefined;
  amount: number;
  duration: DonationDuration;
})

Source from the content-addressed store, hash-verified

328>;
329
330export function createStripePaymentIntent(body: {
331 email: string | undefined;
332 name: string | undefined;
333 amount: number;
334 duration: DonationDuration;
335}): PaymentIntentResponse {
336 return post('/donate/create-stripe-payment-intent', body);
337}
338
339interface Report {
340 username: string;

Callers 1

WalletsButtonFunction · 0.90

Calls 1

postFunction · 0.70

Tested by

no test coverage detected