'use client'; import { useEffect } from 'react'; import { relayPaymentReturn } from 'brainerce'; import { LoadingSpinner } from '@/ui/shared/loading-spinner'; /** * Where a provider page shown in the payment iframe lands when it finishes * (any provider whose payment page renders in an iframe). `relayPaymentReturn()` * tells the checkout page in the parent window (same origin only), which then * confirms with the server. Opened at the top level instead, it forwards to the * order confirmation page. Nothing here trusts the query string: the server * re-verifies the payment. */ export default function PaymentCompletePage() { useEffect(() => { relayPaymentReturn(); }, []); return (
); }