#mymodian_best-practices
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.
- mymodian_best-practices, 2 days ago, 18 messages
- mymodian_unexpected, 3 days ago, 11 messages
- mymodian_docs, 4 days ago, 17 messages
đ Welcome to your new thread!
â˛ď¸ We'll be here soon! We typically respond in a few minutes, but in some cases we might need a bit more time (e.g., server's busy, you've got a complex question, etc.).
âąď¸ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can 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/1257219092717371402
đ Have more to share? Add details, code, screenshots, videos, etc. below.
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
here's the request id: req_ZDHfp3SCIMyjhV
my question is that can we use subscription.New to create a subscription for a customer with AutomaticTax and collect the customer's address while paying
Thanks for the ID, you encountered this error because the customer doesn't have an address, and Stripe Tax needs customer's address in order to calculate tax
The checkout will collect the address and set it to the customer object before creating a subscription
yes, i have tested this. so can we let stripe to collect the address when the customer pay for the first cycle of the subscription?
Sure, you can use AddressElement to collect the address, and set it to the customer object.
is that if we want to use subscription.New to create the subscription, then we must collect the customer's address before it?
Yes, if you want to enable automatic tax.
OK. i have another question, i need to use subscriptionschedule.New to create a subscription started in the future, and collect the payment method for it. how to acheive this?
i didn't find any field in the response object that contains the ClientSecret to collect the payment method for the scheduled subscription.
You can create SetupIntent and use its clientSecret to collect a payment method for the customer.
is this the only way?
That's my recommendation. Or do you have another approach you have in mind and want to discuss?
i have tested before that if i use subscription.New to create a subscription with trial, the returned object will contain a PendingSetupIntent to collect the payment method, i just want to know that is there a object like this in the response of subscriptionschedule.New.
No, subscriptionSchedule doesn't have pending_setup_intent
OK. Thanks for your help, i have no questions now.