#pilou-authentication-401

1 messages · Page 1 of 1 (latest)

sick scrollBOT
main solar
#

401 means authentication error, usually it means you're passing and invalid API key

#

you should be able to look at the exact error we return which would tell you what the problem is

#

pilou-authentication-401

thin matrix
#

I don't understand how can i use the subscription creation insteed

#

i didn't manage to create one this is my code :

                customerID, 
                { items: [{ price: productID }] },
                
            ).catch((err) => {
                setVerifCardStripeLoad("");
                setVerifCardStripeError("Une erreur est survenue lors du paiement, veuillez verifier les informations de votre carte.");
                return;
            });

Why when i add something after customerID there is no errors

main solar
#

I'm sorry I have no idea what your questions means

#

What's the problem? What error do you get in your code?

#

also you're missing {} around the params let subscription = await stripe.subscriptions.create({ customerID, { items: [{ price: productID }] }, })

sick scrollBOT
thin matrix
#

Ok it's my fault thx
If i want to set a end date for the subscription with value i have to set ?

tame vessel
#

👋 stepping in