#derand1_best-practices

1 messages · Page 1 of 1 (latest)

junior zodiacBOT
#

👋 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/1265656702938910792

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

thin solarBOT
#

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.

spare quarry
#

To add: we don't want to have to explicitly set the default payment method of a subscription. IIRC, this doesn't get automatically set unless a payment method has been used before?

dawn hound
#

hi! I don't think there's a specific way to do this. What you'd do is present some UI to show the customer their PaymentMethods and when they pick one, call your backend and tell it to call either https://stripe.com/docs/api/subscriptions/create#create_subscription-default_payment_method or set https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method for subscriptions.

we don't want to have to explicitly set the default payment method of a subscription. IIRC, this doesn't get automatically set unless a payment method has been used before?
if you use recommended integrations like https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=react-native it gets set automatically to the method used to pay the first invoice.

well as one-time payments (standalone payment intent)
those never use a default method, you always need to explicitly pass a pm_xxxx ID when confirming the PaymentIntent

spare quarry
#

Ah okay thank you very much.

What are your thoughts on the customer sheet? Is it worth implementing as a beta feature? (And do I have to apply to test it out? haha)

dawn hound
#

it's probably exactly what you're looking for but I don't think we plan to release it out of beta for a while as we need to build it for Android, and there are some other priorities to fix in that SDK first

#

if you're not using the RN library and using the raw Android/iOS libraries there are some older/legacy components that fulfill the same purpose. Otherwise there's not really any greast options beyond building your own UI using your backend to give you a list of PaymentMethods for the customer.

spare quarry
#

Gotcha, I appreciate the input.
Also I checked out some of these threads and yikes. Hope Stripe is paying you OT hours for dealing with some of these people. Good luck soldier 🫡