#wullvie

1 messages · Page 1 of 1 (latest)

indigo cloakBOT
quartz ore
radiant kayak
#

req_lyrJdfrK2zN0jk

#

oops sorry

#

req_XOZH4W60LgUfhZ

quartz ore
#

This request is a POST to /v1/customers. We would expect it to return a Customer object

radiant kayak
#

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

quartz ore
#

That code isn't being called

radiant kayak
#

ok - prior i had by accidnet: stripe.checkout.session (NOT sessions*)

#

accident*

quartz ore
#

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

radiant kayak
#

yep - those were fine

quartz ore
#

but today the only API you are calling is /v1/customers

radiant kayak
#

this is the func i have that called those previous requests that worked v1/checkout/sessions

quartz ore
#

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

radiant kayak
#

would having "stripe.checkout.session" with NO 's' on sessions cause this issue?

quartz ore
#

Nope

radiant kayak
#

ok ill double check then lol

quartz ore
#

You are making a call to /v1/customers with no arguments That means somewhere your code is calling stripe.customers.create()

radiant kayak
#

has to be a persistency issue - im seeing code that's not running yet lol

#

I'll get it

#

thanks for the help though - appreciate it. stripe.discord always comes through