How sypnosis2019/shopify-function-payment-hide works
This repository is an extension-only Shopify app template with a payment-method transform extension, not a server or admin UI. In the checkout workflow, the extension evaluates the cart total and available payment methods, then returns an operation to hide Cash on Delivery when the total reaches the configured threshold. The GraphQL input query and runtime function are present; the extension’s target wiring is not shown in the excerpts, so that connection is marked unverified.
Main entry points: cart_payment_methods_transform_run.js Payment transform · cart_payment_methods_transform_run.graphql Input query
Components 5
Checkout integration
- Shopify checkout
Function input
- Input query
extensions/payment-hide-non-subscription/src/cart_payment_methods_transform_run.graphql - Function API schema
extensions/payment-hide-non-subscription/schema.graphql
Transform logic
- Payment transform
extensions/payment-hide-non-subscription/src/cart_payment_methods_transform_run.js
Other components
- Shopper
Connections 4
- Shopper → Shopify checkout: uses checkout
- Shopify checkout → Payment transform: invokes function
- Input query → Payment transform: supplies input
- Payment transform → Shopify checkout: returns hide operation
extensions/payment-hide-non-subscription/src/cart_payment_methods_transform_run.js