MCPcopy
hub / github.com/OpenPipe/OpenPipe / createSetupIntent

Function createSetupIntent

app/src/server/utils/stripe.ts:36–43  ·  view source on GitHub ↗
(stripeCustomerId: string)

Source from the content-addressed store, hash-verified

34 });
35}
36export const createSetupIntent = async (stripeCustomerId: string) =>
37 stripe.setupIntents.create({
38 customer: stripeCustomerId,
39 usage: "off_session",
40 automatic_payment_methods: {
41 enabled: true,
42 },
43 });
44
45export const getStripeCustomer = async (stripeCustomerId: string) =>
46 stripe.customers.retrieve(stripeCustomerId);

Callers 1

payments.router.tsFile · 0.90

Calls 1

createMethod · 0.45

Tested by

no test coverage detected