#smileydev-apikey

1 messages · Page 1 of 1 (latest)

bright gale
wet thunder
#

I am using standard account

bright gale
#

looks like you're missing an API key when instantiating Stripe? What does your code look like (pls don't paste any API keys, redact any private info)

wet thunder
#

const stripeClient = new Stripe(STRIPE_API_KEY_V2, "2019-02-11");

#

You mean this? I was wondering if I am missing a header like const invoiceOfItems = await stripeInvoiceClient.invoices.retrieve( invoiceData.invoiceId, { stripeAccount: invoiceData.stripeConnectedId } );

bright gale
#

log out STRIPE_API_KEY_V2 in your code before to make sure you are retrieving the API key as expected as a string and it is being passed in (again don't share it here, that is your secret key)

wet thunder
#

I see

#

I will let you know since I have to check on aws lambda function and it take some time to deploy it.

#

Hi @bright gale thanks, it seems I have a mistake of my env file.
thank you