← RSS + Stripe integrations

Confirm a Payment Intent with Stripe APIon New Item in Feed from RSS API

Pipedream makes it easy to connect APIs for Stripe, RSS and 700+ other apps remarkably fast.

Trigger workflow on
New Item in Feed from the RSS API
Next, do this
Confirm a Payment Intent with the Stripe API
No credit card required
Into to Pipedream
Watch us build a workflow
Watch us build a workflow
7 min
Watch now ➜
Trusted by 250,000+ developers from startups to Fortune 500 companies:
Trusted by 250,000+ developers from startups to Fortune 500 companies

Developers Pipedream

Getting Started

This integration creates a workflow with a RSS trigger and Stripe action. When you configure and deploy the workflow, it will run on Pipedream's servers 24x7 for free.

  1. Select this integration
  2. Configure the New Item in Feed trigger
    1. Configure Feed URL
    2. Configure timer
    3. Connect your RSS account
  3. Configure the Confirm a Payment Intent action
    1. Connect your Stripe account
    2. Select a Payment Intent ID
    3. Optional- Select a Customer ID
    4. Optional- Select a Payment Method
    5. Optional- Configure Receipt Email
    6. Optional- Select a Setup Future Usage
    7. Optional- Configure Advanced Options
  4. Deploy the workflow
  5. Send a test event to validate your setup
  6. Turn on the trigger

Details

This integration uses pre-built, open source components from Pipedream's GitHub repo. These components are developed by Pipedream and the community, and verified and maintained by Pipedream.

To contribute an update to an existing component or create a new component, create a PR on GitHub. If you're new to Pipedream component development, you can start with quickstarts for trigger span and action development, and then review the component API reference.

Trigger

Description:Emit new items from an RSS feed
Version:1.0.2
Key:rss-new-item-in-feed

Trigger Code

import rss from "../../app/rss.app.mjs";
import { defineSource } from "@pipedream/types";
export default defineSource({
    key: "rss-new-item-in-feed",
    name: "New Item in Feed",
    description: "Emit new items from an RSS feed",
    version: "1.0.2",
    type: "source",
    dedupe: "unique",
    props: {
        url: {
            type: "string",
            label: "Feed URL",
            description: "Enter the URL for any public RSS feed",
        },
        timer: {
            type: "$.interface.timer",
            description: "How often you want to poll the feed for new items",
            default: {
                intervalSeconds: 60 * 15,
            },
        },
        rss,
    },
    hooks: {
        async activate() {
            // Try to parse the feed one time to confirm we can fetch and parse.
            // The code will throw any errors to the user.
            await this.rss.fetchAndParseFeed(this.url);
        },
    },
    async run() {
        const items = await this.rss.fetchAndParseFeed(this.url);
        items.forEach((item) => {
            this.$emit(item, {
                id: this.rss.itemKey(item),
                summary: item.title,
                ts: item.pubdate && +new Date(item.pubdate),
            });
        });
    },
});

Trigger Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI and CLI.
LabelPropTypeDescription
Feed URLurlstring

Enter the URL for any public RSS feed

timer$.interface.timer

How often you want to poll the feed for new items

RSSrssappThis component uses the RSS app.

Trigger Authentication

The RSS API does not require authentication.

About RSS

Real Simple Syndication

Action

Description: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](https://stripe.com/docs/api/payment_intents/confirm) for more information
Version:0.0.2
Key:stripe-confirm-payment-intent

Action Code

const pick = require("lodash.pick");
const stripe = require("../../stripe.app.js");

module.exports = {
  key: "stripe-confirm-payment-intent",
  name: "Confirm a Payment Intent",
  type: "action",
  version: "0.0.2",
  description: "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](https://stripe.com/docs/api/payment_intents/confirm) for more information",
  props: {
    stripe,
    id: {
      propDefinition: [
        stripe,
        "payment_intent",
      ],
      optional: false,
    },
    // Needed to populate the options for payment_method
    customer: {
      propDefinition: [
        stripe,
        "customer",
      ],
    },
    payment_method: {
      propDefinition: [
        stripe,
        "payment_method",
        ({ customer }) => ({
          customer,
        }),
      ],
    },
    receipt_email: {
      propDefinition: [
        stripe,
        "email",
      ],
      label: "Receipt Email",
    },
    setup_future_usage: {
      propDefinition: [
        stripe,
        "setup_future_usage",
      ],
    },
    advanced: {
      propDefinition: [
        stripe,
        "advanced",
      ],
      description: "Specify less-common options that you require. See [Confirm a PaymentIntent]" +
        "(https://stripe.com/docs/api/payment_intents/confirm) for a list of supported options.",
    },
  },
  async run({ $ }) {
    const params = pick(this, [
      "payment_method",
      "receipt_email",
      "setup_future_usage",
    ]);
    const resp = await this.stripe.sdk().paymentIntents.confirm(this.id, {
      ...params,
      ...this.advanced,
    });
    $.export("$summary", "Successfully confirmed the payment intent");
    return resp;
  },
};

Action Configuration

This component may be configured based on the props defined in the component code. Pipedream automatically prompts for input values in the UI.

LabelPropTypeDescription
StripestripeappThis component uses the Stripe app.
Payment Intent IDidstringSelect a value from the drop down menu.
Customer IDcustomerstringSelect a value from the drop down menu.
Payment Methodpayment_methodstringSelect a value from the drop down menu.
Receipt Emailreceipt_emailstring
Setup Future Usagesetup_future_usagestringSelect a value from the drop down menu:on_sessionoff_session
Advanced Optionsadvancedobject

Specify less-common options that you require. See Confirm a PaymentIntent for a list of supported options.

Action Authentication

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.

Create and retrieve API keys to connect your Stripe account from https://dashboard.stripe.com/apikeys.

About Stripe

Payment Platform

More Ways to Connect Stripe + RSS

Cancel a Payment Intent with the Stripe API

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

 
Try it
Cancel Or Reverse a Payout with the Stripe API

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

 
Try it