#yogesh_docs

1 messages ¡ Page 1 of 1 (latest)

modern plumeBOT
wise summitBOT
#

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.

modern plumeBOT
#

👋 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.

wheat valve
#

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?

stoic epoch
#

There is no mandate Id in Payment intent object, only mendate options
pi_1PE436BQzictNbDFWhY5uzoo

arctic hare
#

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.

stoic epoch
#

So we always has to create a setupIntent to charge user for one-off payments?

arctic hare
#

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)

stoic epoch
#

Got it. Can we create mandate during checkout session of subscription? and use that for future usage.

arctic hare
#

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

stoic epoch
#

Hmm, Understood. Can we create mandate using checkout session with setup mode?
If yes how do we pass mandate options to checkout sessions?

arctic hare
#

unfortunately no, it's not possible to create a mandate using chekout session with setup mode currently