The third party API on checkout page

Hey guys,

I hope you are doing well.

I’m working on checkout UI extension and run into difficulties.

I should implement the address validation functionality on checkout page using checkout ui extension.

But how can I include the third party api to checkout extension?
I would like Expert’s help.

Please advise.

Thank you

I have a similar question. I’m using the Cart and Checkout Validation Function and need to connect to the Fedex API to validate addresses, but can’t figure out how to fetch the data and wait for the response.

I get the following error when using await:

Error while running JS: Adding tasks to the event queue is not supported 

Update: I have an external connection (somewhat) working in the Checkout UI extension now.

I added the following to shopify.extension.toml:

network_access = true

I also enabled “Allow network access in checkout UI extensions” in the app API access.

I’m now able to make a request to a 3rd party API. However, I’m still having an issue with the delay when sending the request. I can’t figure out how to wait until fetch is complete to display the banner.