#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/1272945869746077809
đ 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_api, 3 days ago, 28 messages
- kun_incomplete-subscription, 4 days ago, 102 messages
- kun_setupintent-3ds, 4 days ago, 9 messages
Hello! The client secret from the Payment Intent associated with a Subscription's Invoice should only be used when you're collecting payment. If you want to have a free trial, you need to create the Subscription with a trial period, then use the client secret from the pending_setup_intent on the Subscription to save the Customer's Payment Method for future use instead of using a Payment Intent.
My point is
I can create subscription with trail_period key
but form the frontend I want to do the confirmCardPayment verfication at the time when I am creating the subsription
so that after 7 days subscription automatically charge the customer without asking 3ds or SCA adain
so I explain it further more with steps?
??
If you have a trial period you wouldn't use confirmCardPayment because there is no payment at that time. You should be using confirmCardSetup instead.
And you should be using the client secret from the pending_setup_intent on the Susbcription when you call that.
instead of latest_invoice?
Correct, because the Invoice should be $0 and have no Payment Intent and, thus, no client secret, right?
If the Invoice is not zero there's some amount to charge now and you should use the client secret from the Invoice's Payment Intent.
ok on frontend which method I should use and on backen end I just add a key "trail_end" and thats it?
On your backend you create a Subscription with a trial (which you can use trial_end for). The Subscription should have a pending_setup_intent which has a client secret. Pass that to your frontend and call confirmCardSetup to save payment info for later use without charging anything now: https://docs.stripe.com/js/setup_intents/confirm_card_setup
got it
A quick question?
confirmCardSetup will this method ask user consent of 3SA and SCA?
and what will happens lets say after 7 days trail do subscription needs another approval from frontend or itcharge automatoically
??