Shopify Functions + useAppMetafields()

Topic summary

A developer is working on a custom Shopify app for a B2B store that uses Shopify Functions to dynamically rename payment methods based on company metafields.

Core Challenge:

  • Attempting to rename a manual payment method using the value from customer.current_company.metafields.custom.cc_1.value
  • Has seen examples of displaying customer metafields in UI Extensions, but not company metafields within Shopify Functions
  • Seeking confirmation on whether this approach is technically feasible

Current Status:

  • The question remains unanswered
  • One follow-up comment asks if a solution was found, indicating ongoing interest but no resolution yet
Summarized with AI on October 30. AI used: claude-sonnet-4-5-20250929.

Hey everyone,

I am deep in the weeds of trying to get my developer app working for our store to be able to rename a payment method using Shopify Functions but set it to the metafield value of the customer’s company. We are a B2B store so all customers are assigned to a company. {{ customer.current_company.metafields.custom.cc_1.value }} is essentially the metafield I want to rename our first manual payment method to. Not looking for a step-by-step guide but just wanting to confirm it’s even possible. I’ve seen other people accomplish displaying a customer metafield in a UI Extension but haven’t seen evidence of a company metafield in a Shopify Function.

1 Like

has conseguido una solucion?