Stripe Payments
Overview
The Stripe Payments node creates checkout sessions and manages payments. Use it to accept payments, generate checkout URLs, and capture payment metadata for e-commerce or subscription flows.
Description
Accept payments via Stripe.
This node communicates with Stripe to create a checkout session.
One-Time Payment
Sell products or services.
Subscription
Start recurring billing plans.
It supports customer references, success/cancel URLs, payment mode, and line items.
Input Parameters
Configure the checkout session.
customerIdTypestringRequired"email"customerIdstringOptionalcustomerEmailstringOptionalpaymentModestringRequired"payment"lineItemsstringRequired"[{\"price\":\"price_123\",\"quantity\":1}]"successUrlstringRequired"https://example.com/success"cancelUrlstringRequired"https://example.com/cancel"Output Parameters
The node returns the session details.
checkout_session_urlstringOptionalidstringOptionalpayment_statusstringOptionalamount_totalnumberOptionalOutput Type
Output Type: JSON
Returns the checkout session object.
Example Usage
Example 1: Create Checkout Session
Generate a payment link for a product.
{ "customerIdType": "email", "customerEmail": "jane@example.com", "paymentMode": "payment", "successUrl": "https://example.com/success", "cancelUrl": "https://example.com/cancel", "lineItems": "[{\"price\":\"price_123\",\"quantity\":1}]"}
{ "checkout_session_url": "https://checkout.stripe.com/c/session_abc", "id": "cs_test_123", "status": "open", "payment_status": "unpaid"}
How to Use in a No-Code Workflow
Add the Node
Place the Stripe Payments node in your workflow.
Configure Customer
Choose email or id and provide the value.
Add Items
Provide lineItems as a JSON string (e.g., [{"price": "...", "quantity": 1}]).
Redirect
Use the checkout_session_url output to redirect the user to the payment page.
Best Practices
- Use HTTPS URLs for success and cancel pages.
- Use
metadatato track order IDs from your system.
Do / Don’t
- ✔️ Handle webhooks to confirm payment completion (async).
- ✔️ Test with Stripe's test card numbers.
- ❌ Don’t assume payment is successful just because the session was created.
- ❌ Don’t hardcode prices if they change frequently (use dynamic inputs).
Common Errors
Missing lineItemsErrorOptionalInvalid customer referenceErrorOptionalExample Workflow Integration
Use Case: Premium Subscription Checkout
Direct user to payment page for a subscription.
- User Selects Plan: User clicks "Upgrade".
- Stripe Payments: Create session with
mode: subscription. - Redirect: Send user to the returned
checkout_session_url.
Workflow Data Flow:
{{plan.priceId}} → {{stripePayment.lineItems}}
{{stripePayment.checkout_session_url}} → {{redirect.url}}
