#aubreywodonga
1 messages · Page 1 of 1 (latest)
Hi! Let me help you with this.
You can set the amount dynamically using items.price_data.unit_amount: https://stripe.com/docs/api/subscriptions/create#create_subscription-items-price_data-unit_amount
Have the customer select the monthly amount on your website, and then create a Subscription with this amount. You can reuse the Product ID for all customers.
Ah fantastic, thank you! So that means I would be dynamically setting the price on creating each subscription?
Yes
Great thanks! I've just got a follow up question as well about using billing_cycle_anchor. If a user is setting up a subscription for example on a Monday, but I would like the subscriptions to be processed on Tuesday afternoons at 5pm, would I need to find the UTC code for the next Tuesday at 5pm and then pass it into the subscription as the billing_cycle_anchor? For a weekly subscription would that then ensure that the subscription is processed at that same time each week?
Just trying to be really clear on implementation before I jump into everything!
Yes, that's correct!
Amazing, thank you so much for your help!
Happy to help!