#doowire

1 messages ยท Page 1 of 1 (latest)

umbral jewelBOT
novel folio
#

Hello ๐Ÿ‘‹
How exactly are you creating these prices?

#

Are you using them in a pricing table?

jaunty dock
#

What I am doing is I have an edit product form. I pull the old price Id from my database and disable it, then I call this create-product to add a new price to the same product

novel folio
#

Can you share an example product ID so that I am on the same page?

jaunty dock
#

WAT64W

#

It's custom

novel folio
jaunty dock
#

For some reason i can't find my most recent product

#

here's an old one

#

req_4thQvJwv6r5ejT

#

Actually dont use that

#

let me create a new product quickly

#

it's not giving me a /products log

novel folio
#

Interesting.. Is it possible you're using an API key that belongs to a diff account?

#

OR are you looking at the correct test mode logs?

jaunty dock
#

i dont think so because it is giving me the /prices logs

#

I can see the correct priceId in the logs

#

changing ev time

novel folio
#

not sure what you mean by ev time ๐Ÿ˜…

jaunty dock
#

Oh wait i got it

#

i was being dumb

#

req_1cxyFtMkJB8vRO

jaunty dock
#

The logging is not the problem anymore. Still struggling with the fact that all the new prices are inactive

novel folio
jaunty dock
#

No

#

I want the old (previous) price to be archived, and the new one to be active

novel folio
#

Hmm, can you share the code you're using to handle that logic? Seems like a bug in your code that's archiving all the prices

jaunty dock
#

Here's my update-price api. Should I just remove this?

novel folio
#

yes or you just need to make sure you don't call the handler for the newly created price ID

jaunty dock
#

I just commented out the part where the price is being disabled, and they are still locked in my dashboard (even when creating new ones)

novel folio
#

Did you create the new price for the same product as before?

jaunty dock
#

Yes

novel folio
#

Okay, taking a look

jaunty dock
#

How is that even possible

#

let me look

#

I think I just fixed it

#

Can you confirm it works

novel folio
jaunty dock
#

Perfect

jaunty dock