A little pre-face medusajs v2 stripe integration and medusajs nextjs starter are built on the older packages for stripe - these use the PayButtonElement vs the new ExpressCheckoutElement. Below i've created a temp working ExpressCheckout component.
- I am experiencing an issue where the button is displayed in places prior to any shipping_address being added to the cart, thus when the button is pressed it auto adds the address provided by the express checkout method (applepay/googlepay/klarna/etc). This then triggers the cart to update any applicable tax, cart get's successfully updated but the applepay session never updates.
- what is the best method to solve this so it updates the PayButtonElement with the new data - is a forced re-render the only solution here?