Building SCA-Ready Stripe Donations with Gravity Forms

Strong Customer Authentication (SCA) changed how card payments work in the UK and Europe. Many older donation forms quietly started failing for donors whose banks asked for an extra check. Here is how I build donation forms that just work.
Why Stripe Checkout?
Stripe Checkout is a payment page hosted by Stripe. It handles 3D Secure challenges, Apple Pay, Google Pay and card validation for you. Card details never touch your server, which keeps your compliance work small.
The flow
- The donor fills in a Gravity Forms form with their amount and details.
- On submission, the site creates a Stripe Checkout Session and redirects the donor to it.
- The donor pays, completing any bank check if needed.
- Stripe sends a webhook to the site, and the site marks the donation as paid.
Never trust the redirect alone
Donors close tabs. Phones lose signal. If you only mark a donation as paid when the donor returns to your thank-you page, you will lose records. The webhook is the source of truth.
$event = \Stripe\Webhook::constructEvent(
$payload,
$signature,
$webhook_secret
);
if ( 'checkout.session.completed' === $event->type ) {
$session = $event->data->object;
mark_donation_paid( $session->client_reference_id );
}
Always verify the webhook signature, as above. Without it, anyone could send a fake “payment succeeded” event to your site.
Make webhooks idempotent
Stripe may send the same event more than once. Store the event ID and skip any event you have already handled, so a donation is never counted twice.
Testing checklist
- Successful payment with a normal test card
- Payment that requires 3D Secure authentication
- Declined card
- Donor closes the tab after paying
- Duplicate webhook delivery
With this setup the charity gets reliable records, donors get a smooth experience, and nobody has to reconcile payments by hand.