#_kevinx
1 messages · Page 1 of 1 (latest)
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
ok, what's Stripe Account header
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
I would make sure that your code is actually substituting an account ID (acc_XXXX) for the "{{CONNECTED_ACCOUNT_ID}}"
No worries! If you need anything else let us know!