#karanmehra.zeroit-ephemeralkey

1 messages ยท Page 1 of 1 (latest)

quasi lake
scenic canopy
#

@quasi lake have you any demo project

#

I've created a backend in the Node

quasi lake
#

there's a Glitch project for the backend too :

scenic canopy
#

from where

#

@quasi lake

quasi lake
#

not sure I follow the question?

scenic canopy
#

okay

#

Actually I've got a issue

#

when I'm trying to create epheral. key

#

got a error

#

@quasi lake wait, I'll share a screenshot with you

quasi lake
#

'No such customer' means you're using the wrong secret API key. Like that customer cus_xxx doesn't exist on the account whos key you're using.

scenic canopy
#

what should we use

#

@quasi lake ??

quasi lake
#

I don't understand the question.

#

in your code you see you are hard-coding a particular customer ID cus_xxxx. If you're getting that error it means that customer doesn't exist on the Stripe account you're running the code against. I wouldn't know where you got that customer ID, it's your code, you'd need to investigate and make sure you configure the code to use the right key when you initialise the Stripe() library in Node.

#

does that make sense?

#

for example, why are you using a hard-coded cus_xxx string instead of the customerId value on line 44?

scenic canopy
#

the function

#

That's why I set in hard coded

quasi lake
#

well then you hard coded it to some wrong value. Not sure how else I can explain this but hopefully it's clear!

scenic canopy
#

any refrence link

#

because I'm little bit confused

#

for how I deploy this empheral key func

#

๐Ÿ˜•

fleet shell
#

Hello ๐Ÿ‘‹
Taking over as karllekko needs to step away soon

#

The error that you're getting, usually suggests that either
1/ The customer ID that you're setting doesn't exist
or
2/ You're using the wrong API key to retrieve the customer

#

Are you sure the customer ID that you're setting belongs to the account whose API key you're using for testing?

scenic canopy
#

yes

fleet shell
#

can you share the customer ID?

scenic canopy
#

{
"object": {
"id": "cus_MIq0QaKHmjkp6g",
"object": "customer",
"address": {
"city": "mohali",
"country": "IN",
"line1": "sdfsf",
"line2": "sdfdsf",
"postal_code": "160073",
"state": "PB"
},
"balance": 0,
"created": 1661327308,
"currency": null,
"default_currency": null,
"default_source": null,
"delinquent": false,
"description": "testing",
"discount": null,
"email": "sangeeta.zeroit@gmail.com",
"invoice_prefix": "CB9A59A4",
"invoice_settings": {
"custom_fields": null,
"default_payment_method": null,
"footer": null,
"rendering_options": null
},
"livemode": false,
"metadata": {
},
"name": "sangeeta",
"next_invoice_sequence": 1,
"phone": "+",
"preferred_locales": [
],
"shipping": null,
"tax_exempt": "none",
"test_clock": null
}
}

#

cus_MIq0QaKHmjkp6g

#

any idea

#

@fleet shell and @quasi lake

fleet shell
scenic canopy
#

I was solved

#

Actually I post the published key instead of secretkey

#

my Bad ๐Ÿ˜…

#

Anyway, Thank you so much @fleet shell and @quasi lake for clarify my issue