- How do I install baks-dev/ozon-support in a Laravel project?
- Run `composer require baks-dev/ozon-support` to install via Composer. Then register the Ozon Support profile type with `php artisan baks:users-profile-type:ozon-support`. Ensure your project uses PHP 8.4+.
- Does this package support Laravel 10+?
- The package is built for PHP 8.4+ and Laravel/Symfony compatibility, but there are no explicit Laravel 10+ guarantees. Check the release notes for any framework-specific dependencies or breaking changes.
- What Laravel features does this package depend on?
- The package relies on Laravel’s core features like service containers and migrations. No additional Laravel-specific dependencies are mentioned, but ensure your project aligns with the package’s PHP 8.4+ requirement.
- How do I run tests for this package?
- Execute tests using `php artisan phpunit --group=ozon-support`. This isolates the package’s test suite, ensuring no conflicts with your project’s existing tests.
- What Ozon API version does this package support?
- The package abstracts Ozon’s API but lacks explicit documentation on Ozon API v3 support. Validate compatibility by checking OAuth2 scopes (e.g., Orders.ReadWrite) and webhook payloads against Ozon’s latest stable version.
- Are there any database migrations included?
- No migrations or schema updates are documented. Run `php artisan migrate:status` to confirm no prior versions introduced tables like `ozon_orders`. Customize as needed for your project.
- How does this handle OAuth2 authentication?
- The package assumes an unchanged OAuth2 flow, but revalidate token refresh logic and credential storage (e.g., Laravel Vault compatibility). Ensure your project’s auth system aligns with Ozon’s latest OAuth2 requirements.
- What if I need to customize Russian-language strings or region-specific logic?
- The package may include hardcoded Russian strings or region-specific logic (e.g., tax IDs). Override these via language files or custom configurations to adapt to other markets.
- Are there alternatives to this package for Ozon integration?
- For Ozon API integrations, alternatives include official Ozon SDKs or packages like `ozon-ru/ozon-api`. However, this package specializes in tech support workflows, reducing custom dev effort for Ozon-specific support profiles.
- How do I handle webhook failures or retry logic?
- The package lacks explicit documentation on webhook retry logic. Test edge cases like failed HMAC signatures or transient failures. Consider integrating Laravel’s queue system for robust retry mechanisms.