#yogesh_docs
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.
- yogesh_docs, 4 days ago, 15 messages
đ 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/1237663836480339998
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, have you looked at the webhook event checkout.session.completed and look around the payment intent object there, to see the generated mandate id?
There is no mandate Id in Payment intent object, only mendate options
pi_1PE436BQzictNbDFWhY5uzoo
The mandate automatically created for Subscriptions should really only be used for mandates. The mandate created automatically for a subscription will contain the subscription details when the customer is notified of the debit. It will be confusing for a customer if you reuse that automatically created mandate for a one-off invoice.
I suggest going through this guide : https://docs.stripe.com/invoicing/india-emandate-guide
At a high level, you would use SetupIntents to collect the PaymentMethod and create the mandate. Then pass the mandate id when using that PaymentMethod for payment for the one-off Invoice. More details on using SetupIntents with mandates can be found here : https://docs.stripe.com/india-recurring-payments?integration=paymentIntents-setupIntents
So we always has to create a setupIntent to charge user for one-off payments?
No, the SetupIntent is only done once to save that specific PaymentMethod for future use with a mandate
Subsequent one-off off-session payments can use that saved PaymentMethod and that mandate (assuming it's active)
Got it. Can we create mandate during checkout session of subscription? and use that for future usage.
like i mentioned before, the mandate automatically created for Subscriptions should really only be used for mandates. The mandate created automatically for a subscription will contain the subscription details when the customer is notified of the debit. It will be confusing for a customer if you reuse that automatically created mandate for a one-off invoice, since they will see that the debit is for a subscription, when you are actually debiting them for a one-off payment
alternatively, you can always consider sending the invoice to the customer to make payment instead of charging them automatically
Hmm, Understood. Can we create mandate using checkout session with setup mode?
If yes how do we pass mandate options to checkout sessions?
unfortunately no, it's not possible to create a mandate using chekout session with setup mode currently