#Aaron8646-PaymentElement

1 messages · Page 1 of 1 (latest)

sage dune
#

During the checkout flow you would want to have a Price that includes expected fee amount

craggy vine
#

right, but how can i determine the expected fee amount

#

i don't know what payment method my users will use until they've actually entered it in

sage dune
#

Yeah that's true. I can't think of a way to know exactly amount within various PaymentMethod

#

I guess you can only take a fixed amount and optimize it based of your payment report

craggy vine
#

does the balance_transaction.fee_details field get populated when a payment method is added, or on paymentIntent confirmation?

#

if it's the former, i could update the paymentintent with different methods based on what they choose and inspect the field that way

sage dune
#

I believe it's the latter. And yes PI won't be editable at that timing