---
title: "Deploy n8n Stripe"
description: "Stripe payments to Sheets and Slack with n8n"
category: "Automation"
url: https://railway.com/deploy/n8n-stripe
---

# Deploy n8n Stripe

Stripe payments to Sheets and Slack with n8n

**[Deploy n8n Stripe on Railway](https://railway.com/template/n8n-stripe)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/n8n-stripe/manifest.json

- **Creator:** onepush
- **Category:** Automation

## Template content

### n8n-worker

- **Image:** n8nio/n8n:2.36.8
- **Start command:** `n8n worker`
- **Health check:** /healthz

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### n8n

- **Image:** n8nio/n8n:2.36.8
- **Health check:** /healthz
- **Public domain:** Yes

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

## Documentation

# Deploy and Host self hosted n8n Stripe (Open-Source Stripe Automation) on Railway

Stripe automation on queue-mode n8n.

## About Hosting n8n Stripe open-source software on Railway (self hosted n8n template)

n8n Stripe is a self-hosted queue-mode n8n deployment built for Stripe payment automation. This Railway template packages the official `n8nio/n8n:2.36.8` Docker image for both editor and worker, PostgreSQL for workflow/execution data, and Redis Bull as the job broker. Stripe webhooks hit your n8n instance on Railway, enter Redis queue, and are processed by the worker container—then you can update Google Sheets, send Slack alerts, upsert CRM records, and more. Environment variables enforce `EXECUTIONS_MODE=queue` and `DB_TYPE=postgresdb` (SQLite cannot run queue mode), while the persistent volume at `/home/node/.n8n` protects encrypted credentials. `WEBHOOK_URL`, `N8N_PROXY_HOPS=1`, `N8N_ENCRYPTION_KEY`, and `EXECUTIONS_DATA_PRUNE=true` are preconfigured. Your Stripe API keys and customer data stay inside your Railway project.

## Why Deploy n8n Stripe, the Zapier alternative on Railway (Railway Free Trial)

Zapier charges per task, so one Stripe event triggering multiple actions (Google Sheets, Slack, CRM) can consume 5+ tasks. n8n Stripe runs all steps in one execution for a fixed infrastructure cost. Queue mode handles bursts of concurrent webhooks without dropping events. Railway’s $5 free trial (GitHub signup) lets you test this full stack—Postgres, Redis, two n8n containers—end-to-end. You get n8n Community Edition fair-code license: no per-execution fees, unlimited workflow steps, no lock-in. Ongoing cost is only Railway usage, typically $10–$25/month.

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying n8n Stripe on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

### Railway vs Other Hosting Providers and VPS for n8n Stripe self hosting

| Provider | Setup complexity | Queue mode support | Managed Postgres + Redis | Typical monthly cost | Best for |
|----------|------------------|--------------------|---------------------------|----------------------|----------|
| Railway | One-click template | Native via Redis Bull | Built-in | $10–$25 | Teams wanting queue-mode Stripe automation without ops burden |
| DigitalOcean | Manual Droplet + Compose | Manual Redis setup | Separate managed services | $18–$35 | Developers comfortable with SSH |
| AWS | ECS/RDS/ElastiCache | Complex IAM, VPC | Managed but expensive | $50–$120 | Enterprises with AWS accounts |
| Hetzner | Self-managed VPS | Full control, you maintain Redis | Self-managed | $8–$15 | Budget users who can patch and monitor |

Railway links all three services (n8n editor, worker, Postgres, Redis) with internal networking automatically—no Docker network or credential plumbing needed.

## Common Use Cases for hosted n8n Stripe

- **Payment logging to Google Sheets**: `payment_intent.succeeded` appends row with amount, currency, customer ID.
- **Slack alerts for failures/disputes**: `charge.failed` or `charge.dispute.created` triggers formatted message with failure code.
- **CRM enrichment**: On subscription events, upsert contact/deal in HubSpot, Pipedrive, or Salesforce.
- **Subscription lifecycle automation**: `customer.subscription.updated/deleted`, `invoice.payment_succeeded` drive dunning emails, churn logs, CRM updates.
- **Fraud review**: High-risk flags or payment method updates route to Slack, Asana, or Postgres.

## Dependencies for n8n Stripe Docker hosted on Railway

This template provisions four services:

### Deployment Dependencies for Managed n8n Stripe Service (Payment Automation)

You need four services:

1. **n8n main container** (`n8nio/n8n:2.36.8`) on port 5678, volume `/home/node/.n8n`—runs editor, webhook endpoint, enqueues jobs.
2. **n8n worker container** same image, command `n8n worker`—pulls jobs from Redis Bull, executes nodes, can scale horizontally.
3. **PostgreSQL** for `DB_TYPE=postgresdb`—stores workflows, encrypted credentials, execution data.
4. **Redis** with Bull queue—broker between main and worker.

Set `EXECUTIONS_MODE=queue`, `WEBHOOK_URL` to Railway public URL, `N8N_PROXY_HOPS=1`, `EXECUTIONS_DATA_PRUNE=true`. `N8N_ENCRYPTION_KEY` encrypts credentials; never lose it.

### Implementation Details for n8n Stripe (Using n8n official docker image)

Both containers use `n8nio/n8n:2.36.8`. Main runs default server; worker runs `n8n worker`. They share environment variables and the volume at `/home/node/.n8n`. The Stripe node requires Secret Key and Webhook Signing Secret. Webhook arrives at `/webhook/stripe`, signature verified, job enqueued in Redis, worker executes. Bull retries failed jobs; design workflows idempotent to avoid duplicates.

## How does n8n Stripe compare against other payment automation platforms

### n8n Stripe vs Zapier (Zapier Alternative)

Zapier counts each action as a task; n8n runs whole workflow as one execution. n8n exposes full Stripe event payload with branching via JavaScript. Zapier’s filters are limited and still cost tasks. Self-hosted n8n has no per-task fee.

### n8n Stripe vs Make (Make Alternative)

Make charges per operation and cannot be self-hosted. n8n Stripe’s native Stripe trigger handles webhook signature verification; Make often requires custom webhook setup. n8n on Railway gives data ownership and flat infrastructure cost.

### n8n Stripe vs Stripe Sigma DIY (Stripe Sigma DIY Alternative)

Stripe Sigma is SQL analytics only—cannot trigger Slack, Google Sheets, or CRM updates in real time. n8n Stripe is event-driven automation; combine Sigma for historical analysis and n8n for realtime ops.

### n8n Stripe vs Activepieces (Activepieces Alternative)

Activepieces is open-source but less mature queue scaling. n8n’s dedicated worker container with `n8n worker` provides true background processing. For Stripe bursts, n8n’s Redis Bull integration is battle-tested.

## How to use n8n Stripe (the OSS Payment Automation)?

Deploy on Railway, open n8n editor, add Stripe Trigger node, select event (e.g., `payment_intent.succeeded`). Copy webhook URL, add endpoint in Stripe Dashboard. Add Google Sheets node, Slack node, CRM node as needed. Activate workflow. Queue mode: main enqueues, worker executes; monitor Redis logs or set error workflow.

## How to self host n8n Stripe on other VPS Services (n8n Stripe self hosting guide)

For Ubuntu 22.04.

### Clone the Repository

Create `docker-compose.yml` with services: n8n-main, n8n-worker, postgres, redis. Use `n8nio/n8n:2.36.8`. Example (abbreviated):

```yaml
n8n-main:
  image: n8nio/n8n:2.36.8
  ports: ["5678:5678"]
  volumes: [n8n_data:/home/node/.n8n]
  environment:
    - EXECUTIONS_MODE=queue
    - DB_TYPE=postgresdb
    - WEBHOOK_URL=https://your-domain.com
    - N8N_PROXY_HOPS=1
    - N8N_ENCRYPTION_KEY=long-random-string
    - EXECUTIONS_DATA_PRUNE=true
n8n-worker:
  image: n8nio/n8n:2.36.8
  command: n8n worker
  volumes: [n8n_data:/home/node/.n8n]
  environment: [same as main]
```

### Install Dependencies

`sudo apt update && sudo apt install docker.io docker-compose-plugin`, then `docker compose up -d`.

### Configure Environment Variables

Set `N8N_ENCRYPTION_KEY` (32+ chars), `WEBHOOK_URL` to public HTTPS, `N8N_PROXY_HOPS=1` if reverse proxy. Do not set `DB_TYPE=sqlite`.

### Start the n8n Stripe Application

Access UI at `http://server-ip:5678`, create owner, set Stripe webhook. Scale worker with `docker compose up -d --scale n8n-worker=3`.

## Official Pricing of n8n Stripe (n8n Stripe pricing)

n8n Community Edition is fair-code, free to self-host. Infrastructure cost only. On Railway, typical $10–$25/month for Postgres, Redis, two n8n containers. n8n Cloud Starter is ~$24/month for 2,500 executions; higher volumes cost more. Self-hosted removes per-execution limit. Community Edition lacks SSO, user roles, audit logs (Enterprise features).

## n8n Stripe cloud vs self hosted comparison (Pricing, features, costs, and more)

### Monthly cost of self hosting n8n Stripe on Railway

- Postgres: $5–$10
- Redis: $2–$5
- n8n main: $3–$8
- n8n worker: $3–$8
Total: $13–$31, typically $10–$25 with efficient resources. Railway $5 trial covers testing. Cheaper than n8n Cloud if >~3,000 Stripe events/month.

### System Requirements for Hosting n8n Stripe on a VPS

2 vCPU, 4 GB RAM, 20 GB SSD, public IPv4 with HTTPS (Stripe requires). On Railway, auto-scales within limits.

## Frequently Asked Questions (FAQs)

### Can I use the free Railway trial for this n8n Stripe template?

Yes, $5 credit (GitHub signup) is enough to test Stripe webhook and integrations.

### Does n8n Stripe support Stripe Connect?

Yes, multiple Stripe credential sets via OAuth or API keys.

### What happens if worker crashes during Stripe webhook?

Redis Bull retries job; design idempotent workflows (check existing row by event ID).

### Can I run without Redis if low volume?

No, queue mode requires Redis and Postgres. For simpler single-container n8n, see [cheapest n8n without queue mode](https://railway.com/deploy/n8n).

### Is Community Edition free for commercial use?

Yes, fair-code license allows commercial self-hosting, not competing SaaS.

### How to secure n8n Stripe on Railway?

Use strong `N8N_ENCRYPTION_KEY`, enable Basic Auth or IP allowlist, keep Postgres/Redis private (Railway does by default). Stripe trigger verifies signing secret automatically.
Queue-mode workers keep n8n Stripe executions off the editor so webhooks stay fast under load.
Queue-mode workers keep n8n Stripe executions off the editor so webhooks stay fast under load.
Queue-mode workers keep n8n Stripe executions off the editor so webhooks stay fast under load.

## Similar templates

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/n8n-stripe
