I wanted to make the payment methods as disabled on shopify stores by default and make it enabled later on from admin merchant action How I can be able to manage the same. For now added some payment methods by extension code using shopify-cli but not being able to make it disabled by default here is the code that I am using on extension repo :
api_version = “2025-01”
[[extensions]]
name = “Payment Gateway”
type = “payments_extension”
handle = “payment-gateway”
payment_session_url = “https://pay.mondidostaging.net/shopify_payments_app/payment”
refund_session_url = “https://pay.mondidostaging.net/shopify_payments_app/refund”
capture_session_url = “https://pay.mondidostaging.net/shopify_payments_app/capture”
void_session_url = “https://pay.mondidostaging.net/shopify_payments_app/void”
multiple_capture = false
merchant_label = “Mondido Payment Staging”
supported_countries = [
“AX”,
“AL”,
“AD”,
“AM”,
“AT”,
“BY”,
“BE”,
“BA”,
“BG”,
“HR”,
“CY”,
“CZ”,
“DK”,
“EE”,
“FO”,
“FI”,
“FR”,
“GE”,
“DE”,
“GI”,
“GR”,
“GL”,
“GP”,
“GG”,
“VA”,
“HU”,
“IS”,
“IE”,
“IM”,
“IT”,
“JE”,
“XK”,
“LV”,
“LI”,
“LT”,
“LU”,
“MT”,
“YT”,
“MD”,
“MC”,
“ME”,
“NL”,
“MK”,
“NO”,
“PL”,
“PT”,
“RE”,
“RO”,
“SM”,
“RS”,
“SK”,
“SI”,
“ES”,
“SJ”,
“SE”,
“CH”,
“TR”,
“UA”,
“GB”,
]
supported_payment_methods = [“visa”, “master”, “swish”, “vipps”, “twoinvoice”]
test_mode_available = true
supports_oversell_protection = false
supports_3ds = true
supports_deferred_payments = false
supports_installments = false
[[extensions.targeting]]
target = “payments.offsite.render”
I want to disable some of the payment methods by default to show on store payment methods setting.