#matthieu-product-id

1 messages · Page 1 of 1 (latest)

royal siren
#

Product created --> Price Generated --> PRice Id saved to database

When I look at the Stripe dashboard vs Database, there is 10 additional characters which cause the product not to be found

Hello 👋
Let's chat here

grizzled hearth
#

Hello, thanks!

royal siren
#

just so that I'm on the same page, product shows up fine on dashboard but not in your DB?

grizzled hearth
#

yes exactly

royal siren
#

what server-side library are you using?

grizzled hearth
#

Flask / Python

royal siren
#

can you share the product ID that you're testing your code with?

grizzled hearth
#

Sure! It seems to only happen with the Price ID though

#

price_1KK3ZWLBQIMsb9IpuGaKnGBr

#

oh, right....

#

I've just wasted your time

#

On the Stripe dashboard, it only shows the first few characters

#

What brought me to this issue however, is the fact that I am getting a 'bad request, price id does not exist'

#

Request req_lyDwLqtCoPF9Jq: No such price: 'price_1KK3ZWLBQIMsb9IpuGaKnGBr'Request req_lyDwLqtCoPF9Jq: No such price: 'price_1KK3ZWLBQIMsb9IpuGaKnGBr'

#

even though, on my dashboard I do see such a price

royal siren
#

are you sure you're using the right API keys?
could happen that the price exists on the test account but the code uses a live key or vice versa

#

if you're using connect, make sure you're referring to platform OR the right connected account

grizzled hearth
#

Ah! I've just changed from using Express to Standard accounts for my users. When I create a product/price, do they have to be assigned to the standard account which will receive the money?

#

because I don't see anything in the 'createProduct' or 'createPrice' function that references the account that it connets to

fringe gale
#

Hello! Catching up, hang on...