Hello! I’m developing a payments_extension
(offsite) using the Shopify CLI.
When I run the command:
shopify app dev
CLI version: 3.69.0
I get this error in the terminal when Shopify tries to preview or load the extension:
Error while deploying updated extension draft: App configuration is not valid
Validation errors in extensions/test-offsite-payment/shopify.extension.toml:
• : Invalid input
Has anyone seen this error during local development? Any advice or ideas would be greatly appreciated
Thanks in advance for your time and help!
Here’s my current shopify.extension.toml
file:
api_version = “2025-04”
[[extensions]]
name = “test-offsite-payment”
handle = “test-offsite-payment”
type = “payments_extension”
merchant_label = “Offsite Payments App Extension”
buyer_label = “Payments App”
payment_session_url = “https://run.mocky.io/v3/72facaa3-0cc0-47b9-91f8-04a9b5202d7d ”
supported_countries = [“CO”]
supported_payment_methods = [“visa”]
supports_oversell_protection = false
supports_3ds = false
supports_installments = false
supports_deferred_payments = false
test_mode_available = true
[[extensions.targeting]]
target = “payments.offsite.render”
1 Like
Alan_G
April 24, 2025, 4:08pm
2
Hey @alvaroatunes - thanks for sharing your .toml config there - from what I can tell using the docs here as a reference, your config does look correct to me.
Could you try running shopify app dev --verbose
and sharing the verbose output here in the thread? I can take a look at that and see if we can pinpoint exactly where the validation is failing.
Thanks so much for the reply, Alan! I ran shopify app dev --verbose as you suggested and here’s the output:
15:53:18 │ test-offsite-payment │ 2025-04-24T20:53:18.405Z: Extension file at path /Users/test-offsite-payment-app/extensions/test-offsite-payment/shopify.extension.toml changed
2025-04-24T20:53:18.409Z: Reading the content of file at extensions/test-offsite-payment/shopify.extension.toml…
2025-04-24T20:53:18.409Z: Reading the content of file at extensions/test-offsite-payment/shopify.extension.toml…
15:53:18 │ test-offsite-payment │ Error while deploying updated extension draft: App configuration is not valid
15:53:18 │ test-offsite-payment │ Validation errors in extensions/test-offsite-payment/shopify.extension.toml:
15:53:18 │ test-offsite-payment │
15:53:18 │ test-offsite-payment │ • : Invalid input
15:53:18 │ test-offsite-payment │
2025-04-24T20:53:20.740Z: Sending “Partners” GraphQL request:
query FindAppPreviewMode($apiKey: String!) {
app(apiKey: $apiKey) {
developmentStorePreviewEnabled
}
}
With variables:
{
“apiKey”: “*****”
}
With request headers:
• User-Agent: Shopify CLI; v=3.69.0
• Keep-Alive: timeout=30
• Sec-CH-UA-PLATFORM: darwin
• Content-Type: application/json
2025-04-24T20:53:21.300Z: Request to https://partners.shopify.com/api/cli/graphql completed in 557 ms
With response headers:
• cache-control: max-age=0, private, must-revalidate
• content-type: application/json; charset=utf-8
• etag: W/“f9e834f7231872722829cb9dec035749”
• server-timing: processing;dur=288, socket_queue;dur=2.495, util;dur=0.7, cfRequestDuration;dur=368.999958
• x-request-id: 8abcbe88-abc8-42ba-abb4-421318835a29-1745528000
2025-04-24T20:53:25.740Z: Sending “Partners” GraphQL request:
query FindAppPreviewMode($apiKey: String!) {
app(apiKey: $apiKey) {
developmentStorePreviewEnabled
}
}
With variables:
{
“apiKey”: “*****”
}
With request headers:
• User-Agent: Shopify CLI; v=3.69.0
• Keep-Alive: timeout=30
• Sec-CH-UA-PLATFORM: darwin
• Content-Type: application/json
Thanks again for your help!
Hi @alvaroatunes
Do you have the necessary permissions for creating a payment extension, see; Get approved for payments