Using Geolocation Utility IPStack in order to hide express payment methods by country

Hi, I’m trying to use an API call to IPstack in order to hide the express payment options for customers coming from Japan (JP). It worked a few times when testing via browser stack, but now my api call is getting the following consolve log error ‘because it violates the following Content Security Policy directive: "script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval’ blob: cdn.shopify.com cdn.shopifycdn.net cdn.shopifycloud.com app.shopify.com’. Does anyone know any other way to hide elements by geolocation on the shopify checkout.liquid page?

{{ alternative_payment_methods }}