#Anureet
1 messages · Page 1 of 1 (latest)
hello! you can make a request to retrieve the PaymentIntent [0][1] and expand [2] the response to include latest_charge.balance_transaction. The corresponding Balance Transaction in the response will contain the fees
[1] https://stripe.com/docs/api/payment_intents/retrieve
[2] https://stripe.com/docs/api/expanding_objects
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I am using setupintents for creating the payment method which is used further.
How can i get the paymentIntent id when i create a setupintent?
you can take a look at this section : https://stripe.com/docs/payments/au-becs-debit/set-up-payment?platform=web#web-future-payments
So I have to create the paymentIntent after i get the payment_method_id ?
yes
alternatively, if you're planning to accept payment at the same time, then just create a PaymentIntent directly e.g. https://stripe.com/docs/payments/au-becs-debit/accept-a-payment
I have to accept the payments later, even my subscription is also created later. I am only collecting the payment details earlier.