#wullvie
1 messages · Page 1 of 1 (latest)
Hi 👋
Can you share an API request ID for this? It will start with req_
Here's how you can find a request ID: https://support.stripe.com/questions/finding-the-id-for-an-api-request
This request is a POST to /v1/customers. We would expect it to return a Customer object
here's my call though
exports.stripe_customer_checkout_session = functions.https.onCall(async (data, context) => {
const session = await stripe.checkout.sessions.create({
success_url: 'https://maestro.sickksoftware.com/redirect?success=true&session_id={CHECKOUT_SESSION_ID}',
mode: 'payment',
line_items: [
{
price_data: {
currency: 'usd',
product: 'prod_OVOgXeLWsOXL5Z',
unit_amount: 4900
},
quantity: 1
}
],
automatic_tax: {
enabled: true
}
})
return session
})
I'll double check the function is up to date but i reuploaded it twice
That code isn't being called
Okay I'm looking at your account logs in Test mode
You were calling checkout session s back in May
and I see a couple on the 7th of August
yep - those were fine
but today the only API you are calling is /v1/customers
this is the func i have that called those previous requests that worked v1/checkout/sessions
const session = await stripe.checkout.sessions.create({
customer: customerId,
client_reference_id: clientRefId,
success_url: 'https://maestro.sickksoftware.com/redirect?success=true&session_id={CHECKOUT_SESSION_ID}',
cancel_url: 'https://maestro.sickksoftware.com/redirect?success=false',
line_items: [
{
price: subscriptionPriceId,
quantity: 1
}
],
phone_number_collection: {
enabled: true
},
mode: 'subscription'
})
Yeah, okay so there are a few differences but nothing that explains why you aren't creating checkout sessions.
I think you need to very carefully review the code that is running
and put in plenty of logging statements to be sure which functions are firing
would having "stripe.checkout.session" with NO 's' on sessions cause this issue?
Nope
ok ill double check then lol
You are making a call to /v1/customers with no arguments That means somewhere your code is calling stripe.customers.create()