- 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>
29 lines
1.1 KiB
TypeScript
29 lines
1.1 KiB
TypeScript
import React from "react";
|
|
import { HandHeart, CreditCard } from "lucide-react";
|
|
import { GuideItem } from "@/components/shared/GuideItem";
|
|
import type { HelpContent } from "./types";
|
|
|
|
/** Help content for /dashboard/user/donate. */
|
|
export const dashboardUserDonateHelpContent: HelpContent = {
|
|
title: "Donations help",
|
|
subtitle: "Support an event or the ministry directly.",
|
|
quickLinks: [
|
|
{ label: "My Payments", href: "/dashboard/user/payments", icon: CreditCard },
|
|
],
|
|
tabs: [
|
|
{
|
|
key: "overview",
|
|
label: "Making a donation",
|
|
icon: HandHeart,
|
|
content: (
|
|
<div className="space-y-4">
|
|
<p>Pick an event to support and an amount (minimum R15), then you'll be taken to a secure online checkout to complete payment.</p>
|
|
<GuideItem icon={HandHeart} title="Not tied to a registration" tone="rose">
|
|
A donation is separate from paying for your own ticket — it's a direct contribution, and it isn't required to register for or attend an event.
|
|
</GuideItem>
|
|
</div>
|
|
),
|
|
},
|
|
],
|
|
};
|