#mulchichis_api
1 messages ยท Page 1 of 1 (latest)
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, 22 hours ago, 34 messages
- mulchichis_best-practices, 1 day ago, 21 messages
๐ 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/1276252053777289227
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
hi toby
Hi there ๐ that isn't supported in Checkout Sessions. In subscription mode a Checkout Session can show a customer's default payment method if it has complete billing details, but it won't show other saved payment methods.
https://docs.stripe.com/payments/accept-a-payment?platform=web&ui=stripe-hosted#handling-existing-customers:~:text=In subscription mode
Thank you!
Any time!
So I have a flow that creates a new payment method for a customer, but it will only capture the card info, so it won't show at checkout. I can't find anywhere to add parameters to the payment creation session so that it has the billing details
customer=stripe_user_id,
flow_data={
"type": "payment_method_update",
"after_completion": {
"type": "redirect",
"redirect": {"return_url": "https://3477-66-194-72-58.ngrok-free.app/success"},
}
}
)```
Ah, and it looks like you're using the Customer Portal for that flow? Let me double check the options available for those configurations to see if you can force the collection of billing details, but offhand I don't think you can.
Yes. I redirect the user to that link right now.
Yeah, unfortunately I'm not spotting a way to configure the Customer Portal to force the collection of the additional details required to get the default payment method to show up in a Checkout Session.
I see. The only reason I wanted to configure this was because I had concerns around how to let the user change their payment method while they're subscribed to my product, because I wasn't sure what would happen if they removed payment methods etc. from the stripe portal while they were subscribed to my product.
Is it safe to let the user manage their own payment methods? Safe being it won't let them cancel subscriptions by removing them etc? I currently require my users to contact support directly to cancel their subscriptions (but they can change and start them without support).
You can use Test Clocks to test this with your exact account settings to see if it would lead to any concerns for you:
https://docs.stripe.com/billing/testing/test-clocks
I don't recall offhand if the Customer Portal will let a customer delete their last payment method while having an active Subscription. They won't be able to cancel their Subscriptions though if you don't configure the portal to let them do so.
Okay thank you!
I have one more question!
It's more of a clarifying one
if I have something like this:
subscription_id,
items=items,
proration_behavior='create_prorations' if immediate_billing else 'none',
)
and the subscription already has items, will it just add the items to it or will it replace the old items with the new ones?