Confirm a checkout result
SendPOST /api/public/client/{public_uuid}/giving/checkout-status with:
provider accepts stripe, flutterwave, or fapshi. reference is required and accepts
up to 255 characters. Include a positive integer campaign_id for an Outreach
Campaign payment; omit it for general giving.
The server verifies the provider result and requires its reference, church, and
campaign to match the request.
For Fapshi, use the transaction identifier bound to the original checkout.
The church and campaign must match that saved checkout before its status can
be returned. Fapshi confirmation uses the original church account and mode;
the return URL is not proof of payment.
Fapshi responses also include mode (sandbox or live) from the original
checkout, so test-payment notices remain accurate after a connection changes.
A successful response contains only:
pending, completed, failed, or cancelled, as supported by the
provider. The response uses Cache-Control: no-store. Invalid input returns
422, a scope mismatch returns 404, and unavailable provider confirmation
returns 503. The route allows 20 requests per minute.
Treat redirect query parameters as navigation hints. They are not proof of a
completed payment. Provider confirmation also does not replace settlement
webhooks or their idempotency checks.
Associate a member
For Google sign-in on a public church page, send the Firebase ID token as a bearer token toPOST /api/public/client/{public_uuid}/auth, with email and
an optional display_name. The server verifies the token before returning a
member or giving claim; a request-supplied Firebase UID is not trusted.
Churches using the shared Firebase web configuration are verified with the
server’s configured Firebase account. A church-specific configuration continues
to use its matching service account. The web and server project IDs must match;
missing credentials, a different project, or an invalid token returns 401
without falling back to another project.
Legacy public Stripe, Flutterwave, and PayPal checkout requests may omit
member_id for anonymous giving. When it is supplied, include the authenticated
member’s bearer token. The server requires that identity to match the member
and church; a numeric member ID alone is insufficient.
The existing verified public authentication response includes a
giving_member_claim. The web PayPal flow refreshes this claim before creating
an order and includes it in compact order metadata. It expires after 24 hours
and is scoped to its church and member. Webhooks do not associate a member from
unverified legacy metadata; those payments remain anonymous.
Campaign checkout also requires an active campaign belonging to the route’s
church and accepting cash gifts. A total cannot be less than the base gift.
Public errors do not include raw provider exception details.
Member history currencies and campaign donors
GET /api/public/client/{public_uuid}/member/donation-history requires the
member’s bearer token. Cash rows include their saved currency.
statistics.total_cash_by_currency contains amounts across the member’s full
history, independent of the requested page:
total_cash field remains for compatibility; it does not
convert currencies. Use the currency map for monetary summaries.
Campaign total_donors counts only cash and item records with donated
status. Repeated received gifts are deduplicated by member identity, or by
trimmed, case-insensitive donor email for guest records. Member and guest
identities are counted separately. Anonymous records with neither identity
are counted individually. Counts remain scoped to the requested church and
campaign, including in dashboard summaries.