Files
crosscode-platform/apps/events/frontend/src/content/help/supervisor-payments.tsx
T
joshuaandClaude Opus 5.5 2064ba2e42 Payment status checks for notifications that never arrive
- src/payments/status.js: open checkouts, checkCheckouts and the
  payment-status job (every 15 min, checkouts 10 min - 3 days old). Found
  payments are settled exactly as their webhook would be (settlePayment,
  extracted from the webhook handler: amount check, record, emails).
- PayFast: signed API client (alphabetical signature, testing=true in
  sandbox), findPayments from the transaction history CSV matched on
  M Payment ID, and testConnection (signed /ping). Verified against a
  real sandbox account.
- Yoco documents no checkout lookup, so its checkouts are "can't check".
- Payments -> Reconcile: "Waiting for payment" with Check status /
  Check all; PayFast card: Test connection.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:28:28 +02:00

49 lines
2.9 KiB
TypeScript

import React from "react";
import { Wallet, RotateCcw, HandHeart, ScanLine, Link2 } from "lucide-react";
import { GuideItem } from "@/components/shared/GuideItem";
import type { HelpContent } from "./types";
/** Help content for /dashboard/supervisor/payments. */
export const supervisorPaymentsHelpContent: HelpContent = {
title: "Payments help",
subtitle: "Record payments, refunds, donations, and reconcile card transactions.",
tabs: [
{
key: "modes",
label: "The five modes",
icon: Wallet,
content: (
<div className="space-y-4">
<div className="space-y-4">
<GuideItem icon={Wallet} title="Payment" tone="brand">
Record a manual payment against a registration or a donation, with amount, method, and an optional backdated time.
</GuideItem>
<GuideItem icon={RotateCcw} title="Refund" tone="rose">
Refund a specific payment or a registration — pick the user, target, amount and method, and a reason.
</GuideItem>
<GuideItem icon={HandHeart} title="Donations" tone="rose">
Assign an unassigned donation to a registration with an outstanding balance. Donations can be partially allocated, leaving the remainder available for another registration. Money from &quot;Sponsor a spot&quot; is marked as a sponsorship. Tick &quot;Only the sponsorship pool&quot; to assign just those, and you&apos;ll see the sponsor&apos;s message. The Donations breakdown report shows each event&apos;s pool: received, assigned and remaining.
</GuideItem>
<GuideItem icon={ScanLine} title="Reconcile" tone="green">
Match unreconciled online payments (from Yoco, PayFast…) to a registration, log them as a donation, or ignore them. A payment of a different amount from its checkout lands here with a note — check it in the provider's dashboard first. "Waiting for payment" lists online checkouts with no payment yet: if someone paid but it hasn't shown up, press Check status (PayFast) — it's also checked automatically every 15 minutes. Yoco can't be checked automatically: find the payment in the Yoco portal.
</GuideItem>
<GuideItem icon={Link2} title="Payment Link" tone="violet">
Generate an online payment link for a user — copy it or send by email/WhatsApp. It uses the default payment provider (Site settings → Payments). Online payments must be at least R15. Generating a new link invalidates the previous one.
</GuideItem>
</div>
</div>
),
},
{
key: "sidebar",
label: "Today panel",
icon: Wallet,
content: (
<div className="space-y-4">
<p>The sidebar shows today&apos;s payment count, revenue, and donation count, plus a recent-payments feed. Internal donation-allocation entries are excluded there to avoid double-counting.</p>
</div>
),
},
],
};