#jairo.paymefy
1 messages · Page 1 of 1 (latest)
can you share the Checkout Session id?
cs_test_a1gpVVv1bzmUfOpCkAbPZoHOqwBI3TXAzwzKr5JmDBcUnvVlZQcLbc92jd
what fee are you looking for? Stripe fee?
yes
you won't be able to view that in the response. What you can do listen for the checkout.session.completed event. Upon receipt of that event, make a request to retrieve the corresponding PaymentIntent [0][1] and expand [2] the response to include charge.balance_transaction. The corresponding Balance Transaction in the response will contain fee_details which should include the Stripe fee :
[0] https://stripe.com/docs/api/checkout/sessions/object#checkout_session_object-payment_intent
[1] https://stripe.com/docs/api/payment_intents/retrieve
[2] https://stripe.com/docs/api/expanding_objects
[3] https://stripe.com/docs/api/balance_transactions/object#balance_transaction_object-fee_details
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.
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.