{
  "name": "Stripe vers Supabase (starter)",
  "nodes": [
    {
      "parameters": {
        "httpMethod": "POST",
        "path": "stripe-paiement",
        "options": {}
      },
      "id": "a1b2c3d4-0001-4000-8000-000000000001",
      "name": "Webhook Stripe",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [240, 300],
      "webhookId": "stripe-paiement"
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "b1b2c3d4-0001-4000-8000-000000000001",
              "name": "email",
              "value": "={{ $json.data.object.customer_email }}",
              "type": "string"
            },
            {
              "id": "b1b2c3d4-0002-4000-8000-000000000001",
              "name": "montant",
              "value": "={{ $json.data.object.amount }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "id": "a1b2c3d4-0002-4000-8000-000000000001",
      "name": "Set Champs",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [460, 300]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://VOTRE-PROJET.supabase.co/rest/v1/paiements",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "apikey",
              "value": "VOTRE-CLE-SUPABASE"
            },
            {
              "name": "Content-Type",
              "value": "application/json"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ $json }}",
        "options": {}
      },
      "id": "a1b2c3d4-0003-4000-8000-000000000001",
      "name": "HTTP Supabase",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [680, 300]
    }
  ],
  "connections": {
    "Webhook Stripe": {
      "main": [
        [
          {
            "node": "Set Champs",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set Champs": {
      "main": [
        [
          {
            "node": "HTTP Supabase",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "pinData": {}
}
