#Trapov

1 messages · Page 1 of 1 (latest)

green dockBOT
light swan
#

Hi! Let me help you with this.

fierce flower
#

We want to have dynamic products for each payment link and it's going to be hard for us to create products on the fly for each payment link.

#

Maybe I'm missing something and there is another way to create payment links or something like that.

polar cypress
#

👋 taking over for my colleague. Let me catch up.

light swan
fierce flower
#

Does it support standard account?

light swan
#

What do you mean by "standard account"?

fierce flower
#

Oh, it's not Stripe Connect

#

It's stripe checkout

#

I mean our platform is not the merchant we provide to our merchant methods for creation of invoices and want to use Stripe for paying-out

light swan
#

Sure, every type of account can create Checkout Sessions.

fierce flower
#

just like invoice2go

#

With checkout sessions we need to create products anyway :/

#

Or we don't need to pass items there?

#

Just set the amount and we good?

light swan
fierce flower
#

so I need to still call the products api beforehand?

#

to create products I mean

light swan
#

No, you can specify product_data inside of price_data, like this:

const session = await stripe.checkout.sessions.create({
  ...,
  line_items: [{
    price_data: {
      unit_amount: 1000,
      currency: 'usd',
      product_data: {
        name: 'Product name'
      }
    },
    quantity: 1
  }],
})
fierce flower
#

hmm

light swan
#

No products/prices will be created in your Dashboard

fierce flower
#

yeah, that's what I need I think

#

Oh, wait

#

But I can't use linked accounts with that?

#

That's only for my account?

light swan
#

I understand, you are talking about Stripe Connect?

fierce flower
#

yeah

light swan
#

It will look like this, if you're using Node.js SDK:

const session = await stripe.checkout.sessions.create({
  ...,
  line_items: [{
    price_data: {
      unit_amount: 1000,
      currency: 'usd',
      product_data: {
        name: 'Product name'
      }
    },
    quantity: 1
  }],
}, { stripeAccount: '{{CONNECTED_ACCOUNT_ID}}' })
fierce flower
#

great

#

and it returns the url to the checkout/payment page

#

that's what I need

#

thank you

light swan
#

Happy to help. Let me know if you have any other questions.