#pelagic.dev

1 messages ยท Page 1 of 1 (latest)

hollow swanBOT
compact plover
#

Hi ๐Ÿ‘‹

upbeat yoke
#

I know that is the expected behavior, I'm just hoping that there's something we can do here. Is there anyway way a dev on the Stripe side can just delete those for us? Archiving won't help because I need to re-use the same Price ID's

#

again, this is only in Test mode

compact plover
#

You can wipe all data from your Test account but, no you cannot delete individual prices

upbeat yoke
#

๐Ÿ˜ž Understanding that, is there anything you or a Stripe Dev can do for us?

compact plover
upbeat yoke
#

Okay, yeah, I've got an open ticket with Support, but our Account Rep also suggested asking the devs in here.

compact plover
#

That's strange, since all we can do is tell you that the API does not allow for changing the ID or amount of a Price. You can update all the parameters we show here: https://stripe.com/docs/api/prices/update

upbeat yoke
#

Looking at the the docs you just linked, maybe I can make an update to the price - but I'm confused on what the request body should look like...

compact plover
#

The code snippet on the right should provide you the information you need

upbeat yoke
#

it doesn't show how to update the currency_options though

#

If I'm reading it right, maybe it's like this...

#
Stripe::Price.update(
    price_id,
    {
      currency_options: {
        usd: {
          tiers: [
            { upto: 3 }
          ]
        }
      }
    }
  )
compact plover
#

You should be able to test that. The type of each parameter is listed next to it's name

upbeat yoke
#

yes, I'm testing it, but not sure why it's not working ๐Ÿค”

#

I'll keep playing with it to see where I can get

compact plover
#

The error message is pretty clear

#

you passed upto we are expecting up_to