MCPcopy Create free account
hub / github.com/stripe/stripe-react-native / fetchClientSecret

Function fetchClientSecret

example/src/helpers.ts:37–45  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35}
36
37export async function fetchClientSecret(): Promise<string> {
38 const response = await fetch(`${API_URL}/account_session`, {
39 method: 'POST',
40 });
41 const json = await response.json();
42 const { clientSecret } = json;
43
44 return clientSecret;
45}

Callers 1

EmbeddedComponentFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…