Stripe powers online and in-person payment processing and financial solutions for businesses of all sizes.
Go to siteThe Stripe API is a powerful tool for managing online payments, subscriptions, and invoices. With Pipedream, you can leverage this API to automate payment processing, monitor transactions, and sync billing data with other services. Pipedream's no-code platform allows for quick integration and creation of serverless workflows that react to Stripe events in real-time. For instance, you might automatically update customer records, send personalized emails after successful payments, or escalate failed transactions to your support team.
import stripe from 'stripe'
export default defineComponent({
props: {
stripe: {
type: "app",
app: "stripe",
}
},
async run({steps, $}) {
const client = stripe(this.stripe.$auth.api_key)
return await client.accounts.list({ limit: 1 })
},
})
Customer Subscription Lifecycle Management: Create a workflow that triggers when a new customer subscribes to a service. The workflow can update a CRM like Salesforce with the new subscription details, send a welcome email via SendGrid, and create a task in Asana for the onboarding team.
Real-Time Fraud Alerting System: Set up a Pipedream workflow that listens for Stripe events indicating possible fraudulent activity, such as multiple declined payments. When detected, the workflow can immediately send alerts through Slack to your risk management team and log the incident in a Google Sheet for review.
Monthly Financial Reporting: Develop a scheduled workflow that runs at the end of each month. It can fetch transaction data from Stripe, aggregate sales and refunds, calculate net revenue, and then compile and send a report to stakeholders via email or post it to a private report dashboard like Tableau.
To connect your Stripe account to Pipedream, you'll need to generate a new Stripe API key and save it in Pipedream.
Open the Stripe API keys dashboard
Create a new Restricted Key
Connect your Restricted API key
Once your Restricted API key is created, copy and paste it into Pipedream, and click Save
That's it, now you're able to use your Stripe API key within your Pipedream workflows with no-code actions or with Node.js/Python.
Cancel a payment intent. Once canceled, no additional charges will be made by the payment intent and any operations on the payment intent will fail with an error. For payment intents with status=requires_capture
, the remaining amount_capturable will automatically be refunded. See the docs for more information
Cancel or reverse a payout. A payout can be canceled only if it has not yet been paid out. A payout can be reversed only if it has already been paid out. Funds will be refunded to your available balance. See the docs for more information
Capture the funds of an existing uncaptured payment intent. See the docs for more information
Confirm that your customer intends to pay with current or provided payment method. Upon confirmation, Stripe will attempt to initiate a payment. See the docs for more information
Stripe's API uses standard HTTP status codes to describe errors.
The request was received and everything worked as expected.
The request is missing data, or has malformed data. Double check that your payload has the required arguments and it's properly formatted.
The request isn't authorized to perform the action. Double check that the restricted key you created for Pipedream has access to the resource you're attempting to use.
You can also edit exisiting keys within your Stripe API key dashboard, which is more convienent than creating a new keys.
The resource isn't available. This usually means that the ID to the resource like the customer, subscription or transaction, etc. is incorrect, or is missing from the URL.
This request conflicts with another. This usually is due to the same idempotency key being used on another request. You may need to reduce the concurrency and throttle the workflow to a single worker to prevent race conditions.
You've reached the API rate limit, you'll need to reduce how frequently you're sending Stripe API requests with that key. Stripe allows 100 read requests and 100 write requests per second.
Something went wrong on Stripe's end. Check the Stripe status page for more details.
Stripe uses API keys for authentication. When you connect your Stripe account, Pipedream securely stores the keys so you can easily authenticate to Stripe APIs in both code and no-code steps.
Stripe uses API keys to authenticate requests (more info in their docs here).
To connect Pipedream to your Stripe account,
To help ensure proper security, we recommend you create a Restricted key with scopes relevant to the specific operations you will use in Pipedream.