Payment Customization

Topic summary

Goal: disable Cash on Delivery (COD) for specific customers via a payment customization extension, targeting users with orders in the past 30 days that carry an “XYZ” tag.

Key constraints: customer tags are not exposed to checkout extensions (the UI customization layer for checkout), so payment options cannot be conditionally shown/hidden based on tags.

Latest update: feedback has been logged with the internal checkout team regarding the need to use customer tags. No commitment or timeline provided.

Suggested alternative: use Shopify Functions (server-side logic that can modify checkout behavior) to hide payment methods based on cart conditions (e.g., cart value). Documentation link was shared.

Proposed workaround: use a metafield (custom data field) to store restricted customer IDs and implement the tutorial that hides payment methods using a metafield. The requester is currently blocked on the UI implementation of that example.

Status: unresolved. Next steps likely involve guidance on implementing the metafield-based UI example or confirmation of supported patterns for identifying restricted customers without tags.

Summarized with AI on December 23. AI used: gpt-5.

HI liam,

Thanks for assisting me, Yes I know that I can’t use customer tag to hide certain payment method. But I can use metafield where all the restricted customers ids can be passed separating by commas and then we can build our logic since in the shopify documentation there is a tutorial of hiding payment methods using metafield. But I am facing problem while implementing that example in the UI part. If I can implement that tutorial then my issue will be solve.

Regards,

Biptu