#kr7pt0
1 messages ยท Page 1 of 1 (latest)
Can you show me what your requestOptions are set to?
If you are using payment mode, a payment intent should be returned
In subscription mode, the subscription isn't created until the first payment is made, so you would want to check the subscription object after that
they only contain the id of the connect account
var requestOptions = new RequestOptions()
{
StripeAccount = postCreator.StripeAccountId,
};
Oh apologies, I meant to ask what you have the first options object set to
But yeah, the intent will be on this property in payment mode https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
And in subscription mode you will want to listen to the checkout.session.completed event and then retrieve the subscription and its first invoice
aah i found the issue. i have to expand it.
is this correct ? Expand = new List<string>(){"payment_intent"},
And yes, that is what you want to do to get the full object with the initial response
Hello ๐
In addition to expanding, if you're on a newer API version
https://stripe.com/docs/upgrades#2022-08-01
We don't generate payment intent ID for a checkout session until it has been confirmed.