With the recent early access program for merchant to move PayPal into Shopify Payments, the “PayPal” name is no longer showing for Payment Customization Function API Input, it is now showing as “Shopify Payments” instead.
This will make it impossible for app to detect and look for “PayPal” payment method and hide them, as some merchants want to hide “PayPal” for some products, or regions due to legal reasons. This change will make some merchants face termination from PayPal if some customers managed to buy products that do not abide ToS of PayPal.
Suggestion for remedying this issue would be to revert the payment method name for PayPal to its original “PayPal” , or add an additional parameter like “fullName” that shows actual payment method name. (eg: name: “Shopify Payments”, fullName: “PayPal Express”)
I would really appreciate it if Shopify dev team can look into this as soon as possible, as some merchants I am working with are already affected by this issue, and Shopify Support staff told them it is not possible to revert the PayPal integration of Shopify Payments.