Deliver personalized files instantly after PayPal transactions using n8n – without writing a single backend line.
This automation template helps you automatically deliver a digital product (such as an n8n template or JSON file) to customers who pay via PayPal — within seconds.
When a customer buys this product through PayPal, this automation:
You’ll need:
.json
file (Oracle, Dropbox, GitHub, etc.)Node: Webhook
Listens for a POST request from PayPal’s webhook for PAYMENT.CAPTURE.COMPLETED
events.
📌 Add the webhook to your PayPal Developer App > Webhooks.
Node: Wait
Adds a brief delay to ensure the payment is completely processed before continuing.
Node: Switch
Processes only when the event is PAYMENT.CAPTURE.COMPLETED
.
Node: HTTP Request
Retrieves the order information from PayPal's Orders API.
URL format:
https://api.paypal.com/v2/checkout/orders/{{ order_id }}
Node: Set
Extracts first name, last name, email address, and the purchased item name.
Node: Switch
Checks if the product is “AI-Powered Social Media Content Generator & Publisher”.
Node: HTTP Request
Fetches the hosted workflow JSON from object storage (Oracle in this case).
Node: Code
Converts the JSON content into a binary file and attaches it.
Node: Send Email
Sends a rich HTML email to the buyer with:
Explore more and master n8n with these resources:
Reach out!
Email: [email protected]
LinkedIn: linkedin.com/in/amjidali
Website: syncbricks.com