- Recipes
- Stripe products to Notion pages
Connect Stripe products and Notion pages in our serverless environment
Use this template to List products from Stripe using them to create Notion pages.
Share
List products from Stripe
Used integrations:
JavaScript
Python
class StripeSourceListProducts {
async init() {
// More info at https://www.npmjs.com/package/stripe
// TODO: Create team variables. More info at https://yepcode.io/docs/processes/team-variables
this.stripe = require("stripe")(yepcode.env.STRIPE_SECRET_KEY);
}
async fetch(publish, done) {
// See product object structure at: https://stripe.com/docs/api/products/list?lang=node
const {
data: products
} = await this.stripe.products.list();
for (const product of products) {
await publish(product);
}
done();
}
async close() {}
}
Comming soon
We are releasing new Python recipes every week
Do you need help solving this integration with YepCode?
Let's talkCreate Notion pages
Used integrations:
JavaScript
Python
class NotionTargetCreatePage {
async init() {
// More info at https://www.npmjs.com/package/@not ionhq/client
// TODO: Create team variables. More info at https://yepcode.io/docs/processes/team-variables
this.notion = new Client({
auth: yepcode.env.NOTION_TOKEN,
});
}
async consume(item) {
// TODO: Customize your page content
// You may want to check the official docs:
// https://developers.notion.com/reference/post-page
// TODO: Customize your database id
const databaseId = "your-notion-database-id";
await this.notion.pages.create({
parent: {
database_id: databaseId
},
icon: {
type: "emoji",
emoji: "