Payment cusomization - External API request

Hi community

I’m trying to hide a payment method via function. But as I already found out, there are limitation in the functions where no HTTP request can be made. I need to verify the customer to an external service (REST), to evaluate if the customer is eligible to pay via bill.

First, what would be the best solution (with the least effort) for this? Functions doesn’t seem to allow it. Directly in the UI? Are there external API requests possible?

Is this generally possible without a Shopify Plus store?

Thank you!

Hi Dothem,

Would it be possible to fetch and store this information on a customer prior to them moving to checkout? Eg: when they log in before moving to checkout you could make a fetch request and store info as a customer metafield or tag, based on whether they are eligible. Then the function could display or hide a payment method conditionally based on what tag/ metafield a customer has?