#djbigpeach

1 messages · Page 1 of 1 (latest)

hardy driftBOT
brazen night
#

Hi, can you add a bit more context to your use case please?

quasi quail
#

In stripes own documentation, they show this sort of payment layout as a use case

#

My expectation is that when the user clicks one of the Express Checkout Elements (e.g. Apple Pay), that I will recieve the user's billing information prior to payment confirmation, this way, I can calculate any necessary taxes based on the user's billing, and update the total amount to charge.

brazen night
#

Taking a look, please give me some time to look through

quasi quail
#

@tropic kite

brazen night
#

Thank you for your patience, I was looking through a few documents on my end. We do mention here that the amount passed on the client side on the elements should match the amount passed on the server side, https://stripe.com/docs/elements/express-checkout-element/accept-a-payment?client=react#create-pi. So you can't just update the PaymentIntent on the server side. After the page loads, there is not a way to update the amount usign the Express Checkout Elements. However, if you use Payment Elements, https://stripe.com/docs/payments/payment-element you can update the amount presented on the wallet by using https://stripe.com/docs/js/elements_object/fetch_updates.

quasi quail
#

Is the expectation for Express Checkout elements that we must know how much tax needs to be charged prior to displaying the express checkout?