Fawran
Get Started

Webhook Setup

Configure your provider to send events to Fawran

Webhook setup

Fawran receives provider webhooks on your behalf. This keeps subscriptions, entitlements, and usage in sync.

Sandbox needs no setup. Sandbox payments run on provider accounts that Fawran manages, and their webhooks already point at Fawran. The steps below are for live, or for a sandbox account you added yourself.

1. Find your webhook URL

Your webhook URL is:

https://api.fawran.copto.org/webhooks/{your-organization-id}/{provider-id}

Example:

https://api.fawran.copto.org/webhooks/org_123/{provider-id}

2. Configure your provider

In your provider dashboard, paste the webhook URL and save. If you brought your own sandbox account, configure it on the provider's test environment and use https://sandbox.fawran.copto.org as the host instead.

If your provider supports webhook signing secrets, copy the secret and save it in Settings → Payment Providers for the matching account.

3. Verify delivery

Trigger a test payment or subscription in your provider dashboard. You should see:

  • A subscription appear in the Fawran dashboard
  • An event logged in the Events tab

Common events Fawran handles

  • Subscription created, updated, canceled
  • Payment succeeded or failed
  • Refunds (when supported by the provider)

Troubleshooting

Webhooks not arriving

  1. Confirm the URL includes both organization ID and provider ID
  2. Confirm the provider account environment matches your test/live setup, and that the host matches (api.fawran.copto.org for live, sandbox.fawran.copto.org for your own sandbox account)
  3. Check the provider dashboard for delivery errors

Invalid signature errors

  1. Confirm the saved webhook secret matches the provider account
  2. Ensure you pasted the secret without whitespace
  3. Regenerate the secret and save it again

On this page

Ask about fawran

Ready

Start a new chat below.