#meisei81
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. 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.
Do you see any errors in your log?
Hi! Can you share the request ID (req_xxx)? Here's how you can find it: https://support.stripe.com/questions/finding-the-id-for-an-api-request
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.
You are using an API version 2022-11-15 , in which "the charges property on PaymentIntent has been removed. You can use the latest_charge property instead."
https://stripe.com/docs/upgrades#2022-11-15
Can I set the api version in Postman request?
Yes
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Got it.
I have tried it and found that latest_charge is a charge id instead of an object
So I need retrieve the object by the lastest charge?
You can expand the latest_charge when doing a fetch request:
https://stripe.com/docs/api/expanding_objects
What API were you looking at ?
Want to get the transaction fee from payment intent detail api
Can you share the API that you arre calling and returning latest_charge with a chargeId ?
curl --location --globoff 'https://api.stripe.com/v1/payment_intents/pi_3OgNNnCsiaKaCQKS18nq2nmf?expand[]=latest_charge'
--header 'stripe-version: 2022-11-15'
--header 'Authorization: Basic xxxxxx'
That's good call yes!
now you should have the Charge object and not just the id, right ?
Yes. And I want to find the transaction fee in the Latest Charge object, but there's none
You need to expand the balance_transcation too:
https://stripe.com/docs/expand/use-cases#stripe-fee-for-payment
Got it. Thank you.