#fizzi - inline subscription items

1 messages · Page 1 of 1 (latest)

sly nimbus
#

Hello! Just starting a thread for you -- I'll review and respond as soon as I can 🙂

fresh lance
#

Hi! Thanks synthrider. Couple questions:

  1. Does this work in the checkout.sessions.create API?
  2. Are race conditions handled? For example, would it be possible to end up with two prices with the same value? This is probably not a big deal, was just curious.
sly nimbus
#

Whats the race condition you're worried about? If two people choose the same amount you get two prices for teh same amount, there is not competition between them.

#

it also lets you define a dynamic product_data

#

For checkout we're also working on stuff to make this easier

fresh lance
fresh lance
sly nimbus
#

Making it easier for you to support customer-selected pricing

#

Correct - you'll be creating a new price object for every instance

#

you may end up with many prices for the same amount

fresh lance
#

Gotcha, I guess last question is to confirm there's no performance issue related to having a bunch of redundant price objects? Even with upwards of 10000 of them?

sly nimbus
#

Nope, totally fine and common

#

Just don't plan on looking at them manually

fresh lance
#

Haha, fair enough. Excellent. Thanks a ton!