#kun_api
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/1271545516584599605
đ 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.
- kun_incomplete-subscription, 22 hours ago, 102 messages
- kun_setupintent-3ds, 1 day ago, 9 messages
- kun_api, 3 days ago, 23 messages
What's your question?
You passed payment_behavior: 'default_incomplete', when creating the sub
That's entirely expected
my question is after I get my setupIntent approved by 3DS
I try to create subscription
But what I get is
subscription.latest_invoice.payment_intent.status = "required_confirmation"
and because of this I get incomplete status in my stripe dashboard
what should I do herE?
Why do you create a setupintent prior to creating the subscription?
well the flow is
step 1: get user card details with stripe elements and then get paymentMethodId
step2: create customer
step 3: create setupIntent (because I want future payments)
step 4: in future pay the value that customer selected the plan and start subscription for recurring payments
Doing a setupintent before subscription can cause issues
but why i try to subscribe
I get this
subscription.latest_invoice.payment_intent.status = "required_confirmation"
and hence my subscription goes "incomplete"
we don't recommend that flow
You should follow our recommended flow: https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=web&ui=elements
You collect payment method details on the subscription
But I dont want to charge customer at once
I want to charge for example after 7-days trail
then I charge staright way and create a subscription
and Yes I want to do using custom form with stripe elements on frontend
You can do trial with above flow
You'd instead collect payment details via the setupintent generated from the subscription object
Not your own setupintent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Your current flow can cause issues with duplicate 3ds, etc
Alright thanks let me try it