Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

825 B
Raw Blame
import { useActions, useValues } from 'kea'

import { LemonBanner, LemonButton } from '@posthog/lemon-ui'

import { paymentEntryLogic } from './paymentEntryLogic'

export const PaymentCompletion = (): JSX.Element | null => {
    const { completedPaymentOrganization } = useValues(paymentEntryLogic)
    const { viewCompletedPaymentOrganization } = useActions(paymentEntryLogic)
    if (!completedPaymentOrganization) {
        return null
    }
    return (
        <div className="flex flex-col gap-2">
            <LemonBanner type="success">Payment setup completed for {completedPaymentOrganization.name}</LemonBanner>
            <LemonButton type="primary" onClick={viewCompletedPaymentOrganization}>
                View {completedPaymentOrganization.name}’s billing
            </LemonButton>
        </div>
    )
}