8
n8n 中文网amn8n.com

Stripe支付订单同步 - 自动获取客户与购买商品

初级

这是一个Sales, IT Ops领域的自动化工作流,包含 3 个节点。主要使用 Set, HttpRequest, StripeTrigger 等节点。 Stripe支付订单同步 - 自动获取客户信息和购买商品

前置要求
  • 可能需要目标 API 的认证凭证
  • Stripe API Key

使用的节点 (3)

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "YVNJOltj0jMQatGz",
  "meta": {
    "instanceId": "143d2ab55c8bffb06f8b9c7ad30335764fdc48bbbacecbe2218dadb998a32213",
    "templateCredsSetupCompleted": true
  },
  "name": "Stripe支付订单同步 - 自动获取客户与购买商品",
  "tags": [],
  "nodes": [
    {
      "id": "90322fe5-5536-41c3-ac08-ea87a856781b",
      "name": "Stripe支付事件触发器",
      "type": "n8n-nodes-base.stripeTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "e85ac894-bb67-436c-ad39-308a00c8e922",
      "parameters": {
        "events": [
          "checkout.session.completed"
        ]
      },
      "credentials": {
        "stripeApi": {
          "id": "ClCB0WooGxls3WGM",
          "name": "Stripe Test"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "3feb0b03-921e-4bfd-8a50-b2b6b47e9497",
      "name": "提取会话信息",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        300,
        0
      ],
      "parameters": {
        "url": "=https://api.stripe.com/v1/checkout/sessions/{{ $json.data.object.id }}",
        "options": {},
        "sendQuery": true,
        "authentication": "predefinedCredentialType",
        "queryParameters": {
          "parameters": [
            {
              "name": "expand[]",
              "value": "line_items"
            }
          ]
        },
        "nodeCredentialType": "stripeApi"
      },
      "credentials": {
        "stripeApi": {
          "id": "ClCB0WooGxls3WGM",
          "name": "Stripe Test"
        },
        "httpHeaderAuth": {
          "id": "9UNc6IDuBlNCX6zd",
          "name": "PDF to Text"
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "5a436d1c-88e9-492e-8fe0-33a5706de1b3",
      "name": "筛选信息",
      "type": "n8n-nodes-base.set",
      "position": [
        560,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "95a68e0f-b74c-4ca2-8143-14b469aa6bfb",
              "name": "Customer Name",
              "type": "string",
              "value": "={{ $json.customer_details.name }}"
            },
            {
              "id": "7634efa6-04f3-4dac-8509-56aae29fcc79",
              "name": "Customer Email",
              "type": "string",
              "value": "={{ $json.customer_details.email }}"
            },
            {
              "id": "10e71e07-6dd3-410c-a774-1eeffe2be7a5",
              "name": "Product Purchased",
              "type": "string",
              "value": "={{ $json.line_items.data[0].description }}"
            }
          ]
        }
      },
      "typeVersion": 3.4
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "e3f6ba06-36d9-4b41-9c5a-cec669ce507b",
  "connections": {
    "Extract Session Information": {
      "main": [
        [
          {
            "node": "Filter Information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Stripe Trigger on Payment Event": {
      "main": [
        [
          {
            "node": "Extract Session Information",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

初级 - 销售, IT 运维

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
初级
节点数量3
分类2
节点类型3
难度说明

适合 n8n 新手,包含 1-5 个节点的简单工作流

作者
Mateo Fiorito Rocha

Mateo Fiorito Rocha

@lemolex

Passionate about AI-driven automation, LLMs, and intelligent systems that enhance efficiency and engagement. Let’s build smarter workflows, send me a message!

外部链接
在 n8n.io 查看

分享此工作流