#himanshujain044

1 messages · Page 1 of 1 (latest)

hollow patioBOT
winter condor
#

using this ssl cert

frail cave
#

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?

winter condor
# frail cave hello! that screenshot which you've provided looks like you're using Postman. Th...

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

frail cave
#

have you tried logging process.env.STRIPE_SECRET_KEY in production when it's running to see if it has a valid value?

winter condor
#

okay let me check

#

wait

#

need to console vlue on prod

winter condor
#

yes yes its working

winter condor
#

but I want to know one thing why , my webhook is not working its giving tls error ?

frail cave
#

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

winter condor
#

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

frail cave
#

can you paste an event id here for me to take a closer look?

winter condor
#

"id": "evt_1OAoMzSH5rhyf7y11yNpGgro",

frail cave
#

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

winter condor
#

okay currently i am using this cert

frail cave
#

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

winter condor
#

okay thanks but could you please verify this , we can use this ZeroSSL RSA Domain Secure Site CA (provider)

frail cave
#

you can use any valid provider. The problem is that the cert is not setup/installed correctly