@extends('layouts.app') @section('content')

TikTok Shop Integration Setup Required

Error: "This service does not exist" means your TikTok Shop app isn't properly registered.
📋 Complete Setup Steps:
1 Create TikTok Shop Partner Account
  • Go to TikTok Shop Partner Center (Malaysia)
  • Create a Developer Account (not seller account)
  • Complete business verification for Malaysia region
  • Important: Make sure you're creating the app in the Malaysia region
2 Create Your App
  • In Partner Center → "Create App" → Choose "Custom App"
  • App Name: "Neosolvix Integration" (or your choice)
  • App Type: Select "Custom App" for your website integration
  • App Category: "Store Management" or "Order Management"
  • Callback URL: {{ request()->getSchemeAndHttpHost() }}/websites/{{ $website->id }}/marketplace-integration/tiktok_shop/callback
  • Scopes: Request necessary permissions (product, order access)
3 Get API Credentials
  • After app creation, you'll get:
  • App Key (service_id): 6h44fnrp7td8v ← This must be valid!
  • App Secret: Keep this secure
4 Update Environment Variables
# Add these to your .env file:
TIKTOK_SHOP_APP_KEY=your_real_app_key_here
TIKTOK_SHOP_APP_SECRET=your_real_app_secret_here
5 Verify App Registration
  • Check App Status: Ensure app shows "Approved" status in Partner Center
  • Verify App Key: Copy the exact App Key from Partner Center to your .env
  • Confirm Callback URL: Ensure redirect URI matches exactly (including https://)
  • Regional Check: Verify app was created in Malaysia region
6 Test the Integration
  • Clear config cache: php artisan config:clear
  • Return to marketplace integration
  • Click "Connect TikTok Shop" again
  • Should redirect to TikTok Shop authorization (not error page)
🔍 Debugging Your Current Setup:
Your App Key: {{ config('services.tiktok_shop.app_key') ?: 'NOT CONFIGURED' }}
App Secret: {{ config('services.tiktok_shop.app_secret') ? '✅ Configured' : '❌ Missing' }}
Callback URL: {{ request()->getSchemeAndHttpHost() }}/websites/{{ $website->id }}/marketplace-integration/tiktok_shop/callback @if(config('services.tiktok_shop.app_key'))
🚨 Current Issue Analysis:
Your App Key {{ config('services.tiktok_shop.app_key') }} is configured but TikTok Shop returns "This service does not exist".

✅ Your OAuth Code is CORRECT! The issue is with app registration.

Possible causes:
  • App not registered - App Key doesn't exist in Partner Center
  • Wrong region - App created in different region than Malaysia
  • Pending approval - App still under review
  • Wrong app type - Need "Custom App" or "Public App" type
  • Missing callback URL - Redirect URI not registered in app settings
@endif
⚠️ Common Issues:
  • "This service does not exist" = App Key not registered in Partner Center
  • "Invalid redirect_uri" = Callback URL not added to your app settings
  • "Access denied" = App not approved for production use
@endsection