Who should use this guideThis guide is intended for merchants who:
- Use Payrails as a chargeback
- Use Stripe Disputes (with or without Stripe Connect)
Create and configure a Stripe integration in Payrails
- Log in to the Payrails portal.
- Go to Settings → Integrations.
- Select Add instance to create a new Stripe integration configuration.
- Select the workspaces where this integration should be available.
About workspacesWorkspaces determine where this integration is available. They let you isolate provider setups by region or business line, or share the same configuration across multiple workspaces.
Step 1: Choose the integration type
- Select Dispute and continue to the next step.

Step 2: Choose the provider
- Select Stripe and continue to the next step.

Step 3: Configure your Stripe integration
Integration instance name
In Payrails- Enter an Instance name for your integration.

Service account (Stripe Connect only)
In Stripe- Go to Settings → Account details.
- Copy the Service account ID (also called the platform account ID).
- Paste the value into the Service account field.

Merchant Stripe account ID
In Stripe- Go to Settings → Business.
- On the Account details tab, copy the account ID (
acct_followed by a 16-character alphanumeric string).

- Paste the value into the Merchant Stripe account ID field.
Secret API key
In Stripe- In Developers, locate Restricted keys and select Create restricted key.
- Choose Providing this key to another website.
- Grant the minimum required permissions:
- Charges (read/write)
- Disputes (read/write)
- Files (read/write)
- Payment Intents (read/write)
- Refunds (read/write)
- Webhooks (read)
- Name the key and add
https://www.payrails.comas the destination URL. - Copy the generated API key.
- Paste the value into the Secret API key field.
HMAC key (webhook signing secret)
In Stripe- Go to Developers → Webhooks.
- Select Add destination.
-
Choose Your account, then Selected events, and enable only the following events:

- Select Webhook endpoint and continue.
- Copy the Notification URL from the Account configuration section.

- Configure the destination:
- Give the destination a descriptive name.
- Paste the Payrails Notification URL and
- Select Create destination.
- Copy the Signing secret.

- Paste the Signing secret into the HMAC key field.
Enable the integration
In Payrails- Select Save account to enable the integration.

Next steps
- Run a test payment triggering a chargeback using a Stripe test card.
- Verify that:
- The dispute appears in Stripe.
- The chargeback status updates correctly in Payrails.
- Once verified in test mode, repeat the setup in live mode.