Archived
- PayFast (custom integration): signed form (PHP-style encoding, checked against a real sandbox), ITN checks (signature over all posted fields, PayFast host, VALID from /eng/query/validate, amount vs checkout). - ProviderCheckout records every checkout (amount, metadata, request); webhooks match payments to it and hold a different amount for review (ProviderTransaction.note). - /pay/<id>: payers choose a provider when several are on, and the browser posts PayFast's form from there, so payment links work for every provider. - Site settings → Payments: PayFast card (merchant ID/key, encrypted passphrase, sandbox/live) while PayFast is enabled. - Payer-facing wording no longer names Yoco; legal pages name both. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
64 lines
3.7 KiB
TypeScript
64 lines
3.7 KiB
TypeScript
import React from "react";
|
|
import { Ticket, Tag, Share2, QrCode, Calendar, Users, HeartHandshake } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for a single public event page (/events/[id]). */
|
|
export const eventDetailHelpContent: HelpContent = {
|
|
title: "Event details help",
|
|
subtitle: "Understanding pricing, availability, and how to register.",
|
|
quickLinks: [
|
|
{ label: "Browse all events", href: "/events", icon: Calendar },
|
|
],
|
|
tabs: [
|
|
{
|
|
key: "tickets",
|
|
label: "Tickets & pricing",
|
|
icon: Tag,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>The tickets panel lists every option available for this event, with live availability.</p>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={Tag} title="Early-bird pricing" tone="amber">
|
|
If a discounted price is shown with the original struck through, an early-bird window is active — the price rises automatically once it ends. Got a discount code? Enter it on the registration page under "Have a code?" (you need to be logged in).
|
|
</GuideItem>
|
|
<GuideItem icon={Ticket} title="Availability badges" tone="brand">
|
|
"N remaining" appears once stock runs low, and "Sold out" once an option is fully booked. Some events have a waitlist: tap "Join waitlist" and you'll be emailed or WhatsApped a link to claim a place if one opens up (it's held for you for a limited time).
|
|
</GuideItem>
|
|
<GuideItem icon={HeartHandshake} title="Sponsor a spot" tone="rose">
|
|
Some events let you pay for a place for someone who can't afford it. Tap "Sponsor a spot", choose one or more spots (or any amount), and pay securely online. You can give anonymously or add a name and a message for the organisers. You'll get a receipt, and who is helped is never shared.
|
|
</GuideItem>
|
|
<GuideItem icon={Users} title="Registering for other people?" tone="violet">
|
|
Some events let you name each person you're booking for. Each named person gets their own ticket and their own attendee form, and you can choose to have every ticket sent to you or each person their own. On youth events, you'll give each person's date of birth; for anyone under 18, their parent or guardian is asked to give consent by email and WhatsApp before they can be checked in.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
{
|
|
key: "registering",
|
|
label: "Registering",
|
|
icon: Ticket,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>The Register button reflects the event's current state:</p>
|
|
<ul className="list-disc pl-5 space-y-1 text-sm text-gray-600">
|
|
<li><strong>Opens <date></strong> — registration hasn't started yet.</li>
|
|
<li><strong>Registration closed</strong> — the deadline or event has passed.</li>
|
|
<li><strong>Sold Out</strong> — every ticket option is fully booked.</li>
|
|
<li><strong>Register</strong> — you're good to go.</li>
|
|
</ul>
|
|
<div className="space-y-4">
|
|
<GuideItem icon={Share2} title="Share & Save QR" tone="green">
|
|
Use Share to send the event link, or Save QR to download a scannable code for the page — handy for posters or flyers.
|
|
</GuideItem>
|
|
<GuideItem icon={QrCode} title="Downloads" tone="violet">
|
|
If the organiser has attached files (like a program or map), they appear in the Downloads section below the description.
|
|
</GuideItem>
|
|
</div>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|