Stripe
Payment processing for invoices, subscriptions, and payment intents
Stripe
Connect to Stripe for payment processing, subscription management, and financial operations.
Overview
Stripe is a payment infrastructure platform. The integration supports:
- Customer Management - Create and manage customer records
- Invoicing - Create, send, finalize, and void invoices
- Subscriptions - Create and manage recurring billing
- Payment Intents - Process one-time payments
- Balance - Check account balance and transactions
Prerequisites
- Stripe account (Standard or Connect)
- API keys or OAuth app credentials
- Appropriate scopes for desired operations
Authentication
Stripe uses OAuth 2.0 for authentication via Nango.
Available Actions
Customer Actions
getCustomer
Get a customer by ID.
createCustomer
Create a new customer.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
email | string | No | Customer email |
name | string | No | Customer name |
description | string | No | Description |
phone | string | No | Phone number |
address | object | No | Customer address |
metadata | object | No | Key-value metadata |
updateCustomer
Update an existing customer.
listCustomers
List customers with filters.
Invoice Actions
createInvoice
Create a new invoice.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
customerId | string | Yes | Customer to invoice |
autoAdvance | boolean | No | Auto-finalize (default: true) |
collectionMethod | string | No | charge_automatically or send_invoice |
daysUntilDue | number | No | Days until due (for send_invoice) |
description | string | No | Invoice description |
metadata | object | No | Custom metadata |
createInvoiceItem
Add a line item to an invoice.
getInvoice
Get an invoice by ID.
listInvoices
List invoices with filters.
finalizeInvoice
Finalize a draft invoice.
sendInvoice
Send an invoice to the customer.
voidInvoice
Void an invoice.
Payment Intent Actions
createPaymentIntent
Create a payment intent for one-time payments.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
amount | number | Yes | Amount in cents |
currency | string | Yes | Three-letter currency code |
customerId | string | No | Customer to charge |
description | string | No | Payment description |
paymentMethodTypes | array | No | Allowed payment methods |
paymentMethod | string | No | Specific payment method ID |
captureMethod | string | No | automatic or manual |
confirm | boolean | No | Confirm immediately |
offSession | boolean | No | Off-session payment |
setupFutureUsage | string | No | on_session or off_session |
receiptEmail | string | No | Email for receipt |
statementDescriptor | string | No | Statement descriptor |
metadata | object | No | Custom metadata |
getPaymentIntent
Get a payment intent by ID.
confirmPaymentIntent
Confirm a payment intent.
capturePaymentIntent
Capture a payment intent (for manual capture).
cancelPaymentIntent
Cancel a payment intent.
listPaymentIntents
List payment intents.
Subscription Actions
createSubscription
Create a new subscription.
Parameters:
| Field | Type | Required | Description |
|---|---|---|---|
customerId | string | Yes | Customer ID |
items | array | Yes | Subscription items with price IDs |
defaultPaymentMethod | string | No | Default payment method |
collectionMethod | string | No | charge_automatically or send_invoice |
daysUntilDue | number | No | Days until due (for send_invoice) |
trialPeriodDays | number | No | Trial period in days |
cancelAtPeriodEnd | boolean | No | Cancel at period end |
prorationBehavior | string | No | create_prorations, none, always_invoice |
metadata | object | No | Custom metadata |
getSubscription
Get a subscription by ID.
updateSubscription
Update a subscription.
cancelSubscription
Cancel a subscription.
listSubscriptions
List subscriptions.
Balance Actions
getBalance
Get account balance.
listBalanceTransactions
List balance transactions.
Webhook Triggers
Stripe webhooks trigger workflows on payment events.
Common Events:
| Event | Description |
|---|---|
invoice.paid | Invoice was paid |
invoice.payment_failed | Payment failed |
customer.subscription.created | New subscription |
customer.subscription.updated | Subscription changed |
customer.subscription.deleted | Subscription cancelled |
payment_intent.succeeded | Payment completed |
payment_intent.payment_failed | Payment failed |
charge.refunded | Charge refunded |
Example Workflow
Invoice and payment workflow:
Rate Limits
| Limit | Value |
|---|---|
| API calls | 100/second (read) |
| API calls | 100/second (write) |
| Webhook delivery | Up to 5 retries |
Troubleshooting
Common Errors
| Error | Cause | Solution |
|---|---|---|
card_declined | Card was declined | Customer should use different card |
invalid_request_error | Invalid parameters | Check required fields |
rate_limit_error | Too many requests | Implement backoff |
authentication_error | Invalid API key | Check connection status |