#pkdiscgolf-checkout
1 messages · Page 1 of 1 (latest)
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?
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
Can you share a request ID or Checkout Session ID?
I believe this is my checkoutsessionid
cs_test_a1NZfqeJLga1F2veEwqvNuKz8tWH6RbWd40c5vOH87KsXBb7zLvI3ul4BP