#abdhesh-rajput_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/1224616610384576523
đ 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.
- abdhesh-rajput_api, 48 minutes ago, 13 messages
This is expected. When the first invoice is $0, you should expand pending_setup_intent to get the Setup Intent client secret and mount the Payment Element using Setup Intent client secret
still element not opening req id : req_t20m8ZdsRoYKmx
Changes is this
return await stripe.subscriptions.create({
customer: customerId,
description: description,
items: items,
payment_behavior: payment_behavior,
payment_settings: payment_settings,
expand: ['pending_setup_intent'],
trial_end : currentDate
});
Did you return pending_setup_intent.client_secret to the client for Payment Element to render?
just need to one thing before i am using paymentIntent now according to changes i need to use setup_intent. so do i need to replace paymentIntent wirh setupIntent in my project ???
Yes!
- When the first invoice is non-zero, Payment Intent should be used
- When the first invoice is zero, Setup Intent should be used. I'd recommend checking the Setup Intent integration guide from Step 5 onwards: https://docs.stripe.com/payments/save-and-reuse?platform=web&ui=elements#collect-payment-details
okay Thanks @livid locust