#Mahesh K
1 messages · Page 1 of 1 (latest)
Hi there, how can I help?
What's your question?
how to pull the transactions using stripe api
and how to catch the payment failure charges by using stripe webhook events
You can retrieve the list of balance transactions via https://stripe.com/docs/api/balance_transactions/list#balance_transaction_list
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok i will check
For this ?
Listen to payment_intent.payment_failed for failed payments
There's no need to tag me for every message you post, I'll attend to you as soon as possible
after paying all the stripe charges and platform fees.
ok
You can get the net amount from the balance transaction https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-net
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
can i catch it using the webhook event after the payment is paid by my customer
Sure. You can listen to payment_intent.succeeded event, get its last charge object, from there get the balance transaction object.
can i use charge.succeeded event and charge.failed for amount charged by stripe on a failure payment event
Yes you can