#jairo.paymefy

1 messages · Page 1 of 1 (latest)

glossy muralBOT
jolly gulch
#

can you share the Checkout Session id?

normal prawn
#

cs_test_a1gpVVv1bzmUfOpCkAbPZoHOqwBI3TXAzwzKr5JmDBcUnvVlZQcLbc92jd

jolly gulch
#

what fee are you looking for? Stripe fee?

normal prawn
#

yes

jolly gulch
#

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