Stripe webhook for legacy API keys
Updated 2 weeks ago
Configure this webhook only if your Gratona workspace uses legacy Stripe API keys. Workspaces connected through Stripe Connect do not need this setup.
Use the webhook endpoint shown in your Gratona payment settings. Do not copy an endpoint from another workspace or environment.
Create the Stripe webhook
Sign in to Stripe and open Workbench > Webhooks.
Choose Create an event destination, then choose Your account and Snapshot payloads.
Enable every event listed under Required events below. The
charge.succeededevent alone is not sufficient.Continue and choose Webhook endpoint as the destination type.
Paste the webhook URL shown in your Gratona Stripe payment settings. Use the same live or test environment in both systems.
Create the destination.
For the current Stripe screens, see Stripe's webhook instructions.
Required events
charge.succeededcharge.failedcharge.pendingcharge.updatedpayment_intent.succeededpayment_intent.processingpayment_intent.payment_failedpayment_intent.canceledpayment_intent.requires_actionpayment_intent.amount_capturable_updatedcharge.refundedrefund.createdrefund.updatedrefund.failedsetup_intent.createdsetup_intent.requires_actionsetup_intent.succeededsetup_intent.canceledsetup_intent.setup_failedmandate.updatedpayment_method.detachedpayment_method.automatically_updatedpayment_method.updatedcharge.dispute.createdcharge.dispute.updatedcharge.dispute.closedcharge.dispute.funds_withdrawncharge.dispute.funds_reinstated
Add the signing secret to Gratona
The signing secret lets Gratona verify that webhook events came from your Stripe account.
Open the webhook destination in Stripe.
Reveal and copy the endpoint's signing secret.
In Gratona, open the Stripe payment settings for the same workspace and environment.
Paste the signing secret into the webhook signing-secret field and save your settings.
Select Test webhook in Gratona to check the endpoint, required events, and signing-secret configuration.
If the checker reports missing events, select Enable missing events, then select Test webhook again until the required-event checks pass.
Finally, complete a payment in the matching environment and confirm that the gift and status appear correctly in Gratona.