diff --git a/BTCPayServer/Plugins/Shopify/ShopifyExtensions.cs b/BTCPayServer/Plugins/Shopify/ShopifyExtensions.cs index 1644b320e..0da5b0ddb 100644 --- a/BTCPayServer/Plugins/Shopify/ShopifyExtensions.cs +++ b/BTCPayServer/Plugins/Shopify/ShopifyExtensions.cs @@ -25,9 +25,17 @@ namespace BTCPayServer.Plugins.Shopify public static ShopifySettings GetShopifySettings(this StoreBlob storeBlob) { - if (storeBlob.AdditionalData.TryGetValue(StoreBlobKey, out var rawS) && rawS is JObject rawObj) + if (storeBlob.AdditionalData.TryGetValue(StoreBlobKey, out var rawS)) { - return new Serializer(null).ToObject(rawObj); + if (rawS is JObject rawObj) + { + return new Serializer(null).ToObject(rawObj); + } + else if( rawS.Type == JTokenType.String) + { + return new Serializer(null).ToObject(rawS.Value()); + } + } return null;