I’m creating payment customization app using Javascript. I used reserved prefix for namespace with reference to the following tutrial.
https://shopify.dev/docs/apps/checkout/payment-customizations/ui
By referring to Step2 of the tutorial, I tried the following input.graphql to get metafield value, but I couldn’t.
query Input {
paymentCustomization {
metafield(namespace: "$app:payment-customization", key: "function-config") {
value
}
}
}
When I used actual value (SHOPIFY_API_KEY) instead of $app, it worked fine.
query Input {
paymentCustomization {
metafield(namespace: "XXXXXXXXXXXX:payment-customization", key: "function-config") {
value
}
}
}
I must have forgotten some procedure.
How can I set $app value?
Thank you.