#canadev_trial-subscription-payment-methods
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/1356260850507317465
📝 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.
- canadev_subs-saved-pms, 4 days ago, 46 messages
Hi, that should work, https://docs.stripe.com/api/subscriptions/create#create_subscription-payment_behavior. Since the first invoice does not need any payments, you'd get https://docs.stripe.com/api/subscriptions/object#subscription_object-pending_setup_intent which you'd take the client_secret from it and collect the payment method details.
When I tried to add 'expand' => ['latest_invoice.payment_intent'], to the subscription creation and then I did $subscription->latest_invoice->payment_intent, the payment intent is null
Can you look the request req_u0OUDjW3x6bvnk ?
You'd need to expand the setup_intents in this case as stated on the above document I shared
Can you expand the pending_setup_intent?
Oh! I misread. I’m going to look into it. Thanks!
Sure
Did it work?