#itome_12582
1 messages · Page 1 of 1 (latest)
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Want to change "Payment from inkloft.io" section.
Please refer to the guide that I share earlier.
Thank you! I'll check it.
@tawdry coral How can I retrieve associated charges object from checkout session object?
checkout_session->payment_intent->latest_charge
Is it possible to expand nested object? or should I call multiple api call to retrive lastest_charge?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Thank you. Can I expand object for return object of stripe.checkout.sessions.create api call? or I have to do another api call to retrive checkout session object?
yes you can expand even in a create request.
However, the payment_intent is null when checkout session is created.
Yes, I got null for payment intent. When can I get paymentIntent?
You'll get the paymentIntent once the checkout session is completed
OK, then I need to retrieve payment intent data when I get completed webhook, right?
Yes you are right
How can I update payment description? I can't find api that can update payment object.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
is this correct?
await stripe.paymentIntents.update(transfer.destination_payment as string, {
description: params.description,
});
transfer.destination_payment is a charge, you should use charges API instead https://stripe.com/docs/api/charges/update#update_charge-description.
Also this charge is created on the connected account, You should specify a stripe_account in the request.
By specifying a stripe_account, you are telling Stripe that you want to make an API call on behalf of a connected account. You can refer to this doc to learn more about making API request for connected account (https://stripe.com/docs/connect/authentication)