Monetize workflows with x402 Payment Protocol and 1Shot API
UnknownWhat this workflow does
This workflow has 10 nodes and runs when an HTTP GET request hits its webhook URL. Along the way it connects 1shot (community).
How it runs
Trigger: When an HTTP GET request hits its webhook URL.
- Payment Token Configs (Code): runs custom JavaScript code
- Validate & Verify X-Payment Header (Code): runs custom JavaScript code
- Verify Payment (One Shot): simulate
- Response: Missing or Invalid Payment Headers (Respond to Webhook): sends the response back to the webhook caller
- On Successful Payment Simulation (If): checks a condition and branches into true / false
- Settle Payment (One Shot Synch): uses One Shot Synch
- Response: Payment Invalid (Respond to Webhook): sends the response back to the webhook caller
- Response: 200 - Payment Successful (Respond to Webhook): sends the response back to the webhook caller
- Response: Payment Failed (Respond to Webhook): sends the response back to the webhook caller
Services it uses
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in Settle Payment).
- Check that n8n-nodes-1shot is verified or supports 3.0 (used in Verify Payment).
Nodes used (6)
- Webhook
n8n-nodes-base.webhook - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - Code
n8n-nodes-base.code - One Shot Synch
n8n-nodes-1shot.oneShotSynch - One Shot
n8n-nodes-1shot.oneShot
From the author
Monetize Your n8n Workflow with x402 This workflow lets you monetize any n8n workflow with the x402 payment protocol. It uses 1Shot API as the onchain transaction fascilitator role. Check out the tutorial video for a complete walkthrough. Setup 1. Create a…