MCPcopy Create free account
hub / github.com/OpenPipe/OpenPipe / usePaymentMethods

Function usePaymentMethods

app/src/utils/hooks.ts:457–464  ·  view source on GitHub ↗
(refetchInterval?: number)

Source from the content-addressed store, hash-verified

455};
456
457export const usePaymentMethods = (refetchInterval?: number) => {
458 const selectedProjectId = useSelectedProject().data?.id;
459
460 return api.payments.getPaymentMethods.useQuery(
461 { projectId: selectedProjectId ?? "" },
462 { enabled: !!selectedProjectId, refetchInterval },
463 );
464};
465
466export const useIsClientInitialized = () =>
467 useAppStore((state) => state.isRehydrated && state.isMounted);

Callers 2

PayButtonFunction · 0.90
PaymentMethodsFunction · 0.90

Calls 1

useSelectedProjectFunction · 0.85

Tested by

no test coverage detected