Hide payment method not working on draft order checkouts

Hello, my payment customization to hide payment methods has been working well for the past few months with no changes but today it’s not working on draft order checkouts for some reason.

On regular checkouts it’s still working fine but only on draft order it seems to not run at all. Anybody know a workaround or fix (version 2025-01)?

// input

  "paymentMethods": [
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/0",
      "name": "Deferred"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/1",
      "name": "Shopify Payments"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/2",
      "name": "PayPal Express Checkout"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/3",
      "name": "Apple Pay"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/4",
      "name": "Google Pay"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/5",
      "name": "Shop Pay"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/6",
      "name": "Redeemable payment method"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/7",
      "name": "Money Order"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/8",
      "name": "Cash on Delivery (COD)"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/9",
      "name": "Bank Deposit"
    },
    {
      "id": "gid://shopify/PaymentCustomizationPaymentMethod/10",
      "name": "Purchase Order"
    }
  ],
// output (on normal checkout)

{
  "operations": [
    {
      "hide": {
        "paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/7"
      }
    }
  ]
}
1 Like

Hey Kyle,

I’ve connected with the relevant team - and will let you know if they can determine what might be causing this. In the meantime, if you test this function out on a different store, are you seeing the same effect for draft order checkouts?

1 Like

Hey Liam, thanks for looking into this.

Just tested it again today and the problem still seems to persist. Along with another store my merchant uses it doesn’t work for them either on draft checkouts, though they said it was working for them not too long ago.

Same here! The weird part is that some stores are affected and others aren’t.

I’ve encountered the same issue. Do you have any news?

Hi all! Appreciate the patience while the team investigated the issue. We can confirm that a fix was applied and draft orders should now correctly run payment customization functions.