I've implemented my own checkout process for my site some time ago which has only a handful of products. I'm just using a static page with some JS that handles my cart/products. A US customer contacted me and told me he can't order from my site and he got this error: "Your order can't be shipped to this address" I checked the SDK documentation and discovered that onShippingChange() was now deprecated and after migrating to onShippingAddressChange() that error was gone. What I don't get is the correct workflow for handling the address/shipping fee change. In my onShippingAddressChange() callback I use data.shippingAddress.countryCode to lookup the shipping costs for the selected address and update the cart on my page accordingly, this part works. But the price in the popup stays the same. How do I update the total price in the popup? I tried to return actions.buildOrderPatchPayload() with a shippingOptions item but that had no effect. Any ideas/example code?
... View more