#oldskool73com_best-practices

1 messages ยท Page 1 of 1 (latest)

winter kayakBOT
#

๐Ÿ‘‹ Welcome to your new thread!

โฒ๏ธ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

โฑ๏ธ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

๐Ÿ”— This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1234316006793674835

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

marble geyserBOT
wanton basin
#

Pay-what-you-want is only for one-time payment. It doesn't support subscription.

For subscription, a price (price_xxx) has to be set. If there is any change of the price, new price ID should be updated: https://stripe.com/docs/billing/subscriptions/upgrade-downgrade

Billing portal can also be supported to update existing subscription with preset list of the prices that the customer can update to

Learn how to upgrade and downgrade subscriptions by changing the price.

sullen oasis
#

To clarify our questions a little...

  1. Is the 'variable inline pricing' the best way to go about this, or is something else recommended?
  2. would using variable inline pricing preclude us from using any other parts of Stripe (e.g the note in the docs around them not being compatible with Payment Links... but assume we could still use the checkout?)
#

hey @wanton basin , thanks for the response... so the upgrade-dpwngrade doc you linked to, that would require us to use a tiered pricing through right? not be able to set your own price?

wanton basin
#

Subscription doesn't support customer setting their own price.

However, it's possible for your own system to set ad-hoc subscription prices using items.price_data: https://docs.stripe.com/api/subscriptions/create#create_subscription-items-price_data

For example, if the customer wants to make a payment of USD 10 this month, your system will create an ad-hoc subscription price (instead of a permanent price) for this specific subscription

sullen oasis
#

ok so if I understand... this is the same as the 'variable inline price' doc I linked to above, just setting a desired 'price_data.unit_amount' ?
so we'd need to provide the interface for the user to set this price in our app, but we can then update the subscription via the Stripe api, and then when the user visits the portal they will see that current chosen price and be able to manage their subscription as normal? (ie not edit the price, but change their card or see previous payments etc)

wanton basin
#

this is the same as the 'variable inline price' doc I linked to above, just setting a desired 'price_data.unit_amount' ?
Yes

so we'd need to provide the interface for the user to set this price in our app, but we can then update the subscription via the Stripe api, and then when the user visits the portal they will see that current chosen price and be able to manage their subscription as normal? (ie not edit the price, but change their card or see previous payments etc)
Yes

sullen oasis
#

perfect, thanks for your time @wanton basin ๐Ÿ™‚