#himanshujain044
1 messages · Page 1 of 1 (latest)
hello! that screenshot which you've provided looks like you're using Postman. The error message points out that you didn't provide an API key when making the request. Did you configure the API key?
no I am using like this only
const session = await stripe.checkout.sessions.create({
billing_address_collection: "auto",
line_items: [
{
price: process.env.PRICE_ID,
quantity: 1,
},
],
mode: "subscription",
success_url: process.env.UI_BASE_URL + successUrl,
cancel_url: process.env.UI_BASE_URL + cancelUrl,
customer_email: userData?.email,
expires_at: Math.floor(Date.now() / 1000) + 30 * 60,
});
and imported stripe and used sectret key like this
const stripe = require("stripe")(process.env.STRIPE_SECRET_KEY);
but on local its working , after deplloyement i am getting this error
have you tried logging process.env.STRIPE_SECRET_KEY in production when it's running to see if it has a valid value?
yes yes its working
but I want to know one thing why , my webhook is not working its giving tls error ?
You can click on the link that says Learn how to investigate and fix a TLS error
that will bring you to a guide that shares what steps to take to investigate and fix the error
yes I know but afer openinh this , I tested my url from the SSL server test , its giving no details and rating as B
so I want to know excat reason why this is happing to me
can you paste an event id here for me to take a closer look?
"id": "evt_1OAoMzSH5rhyf7y11yNpGgro",
you should click into both links for the detailed results in those reports
you can see in both results that there are Chain issues Incomplete, Extra certs
and like what the guide mentions, you need to reach out to your SSL/TLS provider for instructions on how to fix it
okay currently i am using this cert
there's nothing we can do to help you fix the cert, you need to reach out to your SSL/TLS provider for instructions on how to fix it
okay thanks but could you please verify this , we can use this ZeroSSL RSA Domain Secure Site CA (provider)
you can use any valid provider. The problem is that the cert is not setup/installed correctly