#_kevinx

1 messages ยท Page 1 of 1 (latest)

river lightBOT
wild schooner
#

It depends on how you'd like to integrate with Stripe.

lusty zodiac
#

It is conntect Standard account that we are using

wild schooner
#

You need to decide which one you perefer to integrate with

lusty zodiac
#

Here are the codes comparison, notice both has stripe Account

const session = await stripe.checkout.sessions.create(
  {
    mode: "payment",
    line_items: [
        {
          price: '{{PRICE_ID}}',
          quantity: 1,
        },
      ],
    payment_intent_data: {
      application_fee_amount: 123,
    },
    success_url: `${req.headers.origin}/account&success=true&session_id={CHECKOUT_SESSION_ID}`,
    cancel_url: `${req.headers.origin}/?canceled=true`,
    metadata: {
      totalcharge: totalcharge,
    },
  },
  {
    stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
  }
);

const paymentIntent = await stripe.paymentIntents.create(
    {
      amount: 1000,
      currency: 'usd',
      automatic_payment_methods: {
        enabled: true,
      },
    },
    {
      stripeAccount: '{{CONNECTED_ACCOUNT_ID}}',
    }
  );
#

ok, I need a little bit help to understand Direct Charges (which is paymentintent) vs checkout. sesssion

#

Why the doc we got is different from the doc you just sent?

river lightBOT
lusty zodiac
#

Here is what we got to see

wild schooner
#

I do not understand your question. Are you asking me to provide the right document for each integration?

lusty zodiac
#

yes, I'm using Checkout

#

not Payment Element

#

using Checkout with Standard Account

wild schooner
#

Ok,so what is your question? Where are you blocked?

lusty zodiac
#

so if using Checkout, should I use checkout.session then? now, I'm trying to pass some metadata in the checkout.session, but it didn't work, so I went through the documents, and find out for Standard Account, it needs to use paymentintent

#

just need to clarify, for using Stripe Checkout with Standard Account, should we use Checkout.session?

wild schooner
#

Are you trying to pass the metadata to the Pyament intent id?

lusty zodiac
#

no, trying pass metadata in checkout.session

#

just need to clarify, for using Stripe Checkout with Standard Account, should we use Checkout.session?

wild schooner
steady sequoia
#

@lusty zodiac There's no "connection" between a type of connected accounts and whether to use Checkout

#

Whether to use Checkout or not is more a business decision based on the payment experience you want to offer. But it does work totally fine with Standard accounts yes

lusty zodiac
#

oh, ok, that's what I'm trying to confirm, thanks

#

we are using stripe checkout pages directly, low code, so checkout.session should be fine

steady sequoia
#

yep I love that product ๐Ÿ™‚

#

I'm biased obviously :p

lusty zodiac
#

It is great product for sure, save a lot effort and time

#

anyway, if that's the case, I will dig deeper into it and maybe bother you guys next week, since it's Friday afternoon now

#

thanks ๐Ÿ™‚

#

have a good weekend