diff --git a/EbayListingTool/Services/EbayListingService.cs b/EbayListingTool/Services/EbayListingService.cs index 69256f9..6a15e72 100644 --- a/EbayListingTool/Services/EbayListingService.cs +++ b/EbayListingTool/Services/EbayListingService.cs @@ -112,9 +112,18 @@ public class EbayListingService : null; if (_fulfillmentPolicyId == null) + { + if (!_triedPolicySetup) + { + _triedPolicySetup = true; + await SetupDefaultBusinessPoliciesAsync(token); + await EnsurePoliciesAndLocationAsync(token, postcode); + return; + } throw new InvalidOperationException( "No fulfillment policy found on your eBay account.\n\n" + - "Please set one up in My eBay → Account → Business policies, then try again."); + "Please set one up in My eBay \u2192 Account \u2192 Business policies, then try again."); + } } if (_paymentPolicyId == null)