#_kevinx

1 messages · Page 1 of 1 (latest)

lean kestrelBOT
wheat galleon
#

req_wN2Wi4DVX2LmKX

#

Here is the request id

turbid wadi
#

Hi 👋

Looking

#

Okay there is no Stripe Account header used in this request

#

It's not a Connect request as far as the API is concerned so the application fee doesn't make sense

wheat galleon
#

ok, what's Stripe Account header

turbid wadi
#

The way you make a Connect request

#

What are you trying to do here?

wheat galleon
#
const stripe = require("stripe")(process.env.STRIPE_SECRET_KEY);
const session = await stripe.checkout.sessions.create(
  {
    mode: "payment",
    line_items: [
      {
        price_data: {
          currency: "usd",
          unit_amount: 222,
        },
        quantity: 1,
      },
    ],
    payment_intent_data: {
      application_fee_amount: 11,
      setup_future_usage: "off_session",
    },
    success_url: `${req.headers.origin}/account&success=true&session_id={CHECKOUT_SESSION_ID}`,
    cancel_url: `${req.headers.origin}/?canceled=true`,
  },
  {
    stripeAccount: "{{CONNECTED_ACCOUNT_ID}}",
  }
);

I have the header in my code

#

It worked fine last week

#

hold on a sec, let me dig deeper on my side

turbid wadi
#

I would make sure that your code is actually substituting an account ID (acc_XXXX) for the "{{CONNECTED_ACCOUNT_ID}}"

wheat galleon
#

seems that's the issue, thanks

#

still checking

lean kestrelBOT
wheat galleon
#

ah, it's our problem, thanks

#

sorry about that

trail pumice
#

No worries! If you need anything else let us know!