π§ v2.0.1 - Configuration Fix
π§ Lunar-Fortis v2.0.1 - Configuration Fix
π Bug Fix
Missing Product Transaction IDs
- β
Added missing configuration keys to
config/services.php - β Updated documentation with required environment variables
π What's Fixed
config/services.php
Added missing configuration keys:
'fortis' => [
'userId' => env('FORTIS_USER_ID'),
'userApiKey' => env('FORTIS_USER_API_KEY'),
'developerId' => env('FORTIS_DEVELOPER_ID'),
'locationId' => env('FORTIS_LOCATION_ID'),
'productTransactionId' => env('FORTIS_PRODUCT_TRANSACTION_ID'), // β
Added
'terminalProductTransactionId' => env('FORTIS_TERMINAL_PRODUCT_TRANSACTION_ID'), // β
Added
],Environment Variables
Updated .env documentation:
# Required Fortis API credentials
FORTIS_USER_ID=your_fortis_user_id
FORTIS_USER_API_KEY=your_fortis_api_key
FORTIS_DEVELOPER_ID=your_fortis_developer_id
FORTIS_LOCATION_ID=your_fortis_location_id
FORTIS_PRODUCT_TRANSACTION_ID=your_product_transaction_id # β
Added
FORTIS_TERMINAL_PRODUCT_TRANSACTION_ID=your_terminal_product_transaction_id # β
Added
FORTIS_ENVIRONMENT=sandbox # or 'production'π― Impact
This fix ensures that:
- Online payments work correctly with proper product transaction ID
- Terminal payments work correctly with terminal-specific product transaction ID
- Configuration documentation matches actual code implementation
- Out-of-the-box setup works as expected
π¦ Upgrade Instructions
composer update hyrograsper/lunar-fortisThen add the missing environment variables to your .env file:
FORTIS_PRODUCT_TRANSACTION_ID=your_product_transaction_id
FORTIS_TERMINAL_PRODUCT_TRANSACTION_ID=your_terminal_product_transaction_idFull Changelog: v2.0.0...v2.0.1
π€ Generated with Claude Code