It seems that “HideOperation” from payment customizations does not get applied to Shopify payments.
The example below should hide all payments.
Here’s the payment list returned from the function input:
{ "paymentMethods": [
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/0",
"name": "Deferred"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/1",
"name": "Shopify Payments"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/2",
"name": "Apple Pay"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/3",
"name": "Google Pay"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/4",
"name": "Shop Pay"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/5",
"name": "Redeemable payment method"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/6",
"name": "Bank Deposit"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/7",
"name": "Money Order"
},
{
"id": "gid://shopify/PaymentCustomizationPaymentMethod/8",
"name": "Pix"
}
]
}
Here’s the output from our function:
{
"operations": [
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/0",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/1",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/2",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/3",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/4",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/5",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/6",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/7",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
},
{
"hide": {
"paymentMethodId": "gid://shopify/PaymentCustomizationPaymentMethod/8",
"placements": [
"ACCELERATED_CHECKOUT",
"PAYMENT_METHOD"
]
}
}
]
}
Instead this is what shows up in checkout:
As you can see, every payment has been hidden, except what seems to be the field for Shopify payments.
I assume this was done on purpose by the dev team, but I wish there was a warning in the documentation, so that we can show the BFS review team, in case they say our warning about it should be removed.