PaymentConfirmation() — supabase Function Reference
Architecture documentation for the PaymentConfirmation() function in PaymentConfirmation.tsx from the supabase codebase.
Entity Profile
Relationship Graph
Source Code
apps/studio/components/interfaces/Billing/Payment/PaymentConfirmation.tsx lines 6–37
export const PaymentConfirmation = ({
paymentIntentSecret,
onPaymentIntentConfirm,
onLoadingChange,
onError,
}: {
paymentIntentSecret: string
onPaymentIntentConfirm: (response: PaymentIntentResult) => void
onLoadingChange: (loading: boolean) => void
onError?: (error: Error) => void
}) => {
const stripe = useStripe()
useEffect(() => {
if (stripe && paymentIntentSecret) {
onLoadingChange(true)
stripe!
.confirmCardPayment(paymentIntentSecret)
.then((res) => {
onPaymentIntentConfirm(res)
onLoadingChange(false)
})
.catch((err) => {
console.error(err)
onError?.(err)
onLoadingChange(false)
})
}
}, [paymentIntentSecret, stripe])
return <LoadingLine loading={true} />
}
Domain
Subdomains
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free