#mulchichis_checkout-billingcycle
1 messages ¡ Page 1 of 1 (latest)
đ 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/1276301717914390529
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- mulchichis_api, 1 hour ago, 19 messages
- mulchichis_api, 1 day ago, 34 messages
- mulchichis_best-practices, 1 day ago, 21 messages
@scarlet quartz the CustomerPortal doesn't "start" a Subscription so I don't really grasp what you are describing. But you mostly can't control any of this via the CustomerPortal
Sorry. the billing portal. I create a billing portal session to make a subscription, and I want to be able to set the anchor and prorate behavior of that subscription so when the user signs up it's set.
I'm sorry but you say "to make a Subscription" which doesn't make sense yet to me. Are you trying to create a Subscription? Or update an existing one?
line_items = [{'price': price_ids[0], 'quantity': 1}] + [{'price': key} for key in price_ids[1:]]
session = stripe.checkout.Session.create(
success_url='https://chatbuddies.org/success',
cancel_url='https://chatbuddies.org/cancel',
customer=stripe_user_id,
line_items=line_items,
mode='subscription',
)
return session.url```
Using this to create a subscription for the given customer.
Gotcha, you are mixing up your words/vocabulary which is why I was confused (totally fine, lots of words and products we offer)
You are using Stripe Checkout to create a new Subscription on our hosted payment page. This is unrelated to the CustomerPortal.
And what you are asking is something that we do not support today sadly so that's just not possible
mulchichis_checkout-billingcycle
Okay thank you!
Just to clarify--
i would need to use stripe.subscriptions.create and then specify the information there instead to achieve what I want?
I really like the stripe checkout because it gathers the user's payment method for the subscription and makes sure that the initial charge goes through, as well as providing a convenient UI for viewing the products that will be added to the subscription.
Would you recommend that I perform this without trying to use any of stripe's UI elements, based on what I've told you so far?
You can't really do this withouth any of our UI elements. You have to collect their payment method details at some point. But you can't use Checkout for this if you absolutely need the billing_cycle_anchor_config (though it is uncommon to need this).
If you can't do without that, you would use PaymentElement to collect payment method details. I'd recommend following https://docs.stripe.com/billing/subscriptions/build-subscriptions
OKay thank you. Have a good one!