#pkdiscgolf-checkout

1 messages · Page 1 of 1 (latest)

limber marten
#

There's nothing that I know of that would cause us to unexpectedly switch a Checkout Session to subscription mode if you pass mode: payment

#

Is that what you're seeing happen?

minor geode
#

Yes. I have this object:
const session = await stripe.checkout.sessions.create({
customer: stripeCustomerId,
payment_method_types: ["card"],
line_items: [
{
price: body.priceId,
quantity: 1,
},
],
mode: 'payment',

  success_url: body.successUrl,
  cancel_url: body.cancelUrl,
});
#

but when i try to log the session object i am seeing mode: subscription

limber marten
#

Can you share a request ID or Checkout Session ID?

minor geode
#

I believe this is my checkoutsessionid

cs_test_a1NZfqeJLga1F2veEwqvNuKz8tWH6RbWd40c5vOH87KsXBb7zLvI3ul4BP

limber marten
#

Are you 100% sure that the code you're running is what you're looking at? Is it possible you're running an old version of the code or a different file by accident?

#

Looking at the creation request for that Checkout Session it says you passed us mode: subscription