Stripe Connect webhook
POST /api/stripe/webhook-connect — Stripe signature
Stripe sends the raw event body with a Stripe-Signature header. Planpoint verifies it against its configured Connect webhook signing secret.
Handled event types:
Use the unit checkout or CRF deposit API to create the appropriate PaymentIntent and metadata. Do not replace or edit its signed price quote.
Response (200)
400 with an error string. If a paid variant’s related inventory cannot be updated, the endpoint returns 500 with { "received": true, "familyFailures": 1 } (count varies), allowing provider retry.
This endpoint is for connected merchant payments. Planpoint subscription billing uses a different callback and is outside this reference.
Paystack webhook
POST /api/paystack/webhook — Paystack signature
Provider setup URL: https://app.planpoint.io/api/paystack/webhook.
For a processed Planpoint charge, Paystack sends the original JSON body with x-paystack-signature, an HMAC-SHA512 signature verified using the configured merchant secret.
The handler processes charge.success events whose data.reference starts with PP-. It needs data.metadata.userId and a nonempty data.metadata.planpoint item array. Preserve project/group context, optional buyer ID, and priceQuote as described in Paystack checkout metadata.
The callback uses provider amount, currency, payment timestamp, and customer details. It is the server-side completion path when the browser closes or its Portal session expires; do not remove it in favor of the browser callback.
Response (200, processed)
Non-charge and non-Planpoint events are acknowledged without being processed. A
200 response, zero newly processed items, or skipped items is not by itself evidence of a new reservation.
Completion checks
For an ambiguous payment outcome:- Identify the original provider transaction in the correct merchant account and test/live mode.
- Check recorded payments and, for a signed-in buyer, Portal reservations.
- Check inventory separately. A CRF deposit should not reserve it.
- Escalate mismatches with the transaction reference and project ID. Do not create another charge, refund, or synthetic reservation merely to fix a display.