Skip to content

πŸ”§ v2.0.1 - Configuration Fix

Choose a tag to compare

@alecgarcia alecgarcia released this 18 Sep 18:21

πŸ”§ 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-fortis

Then 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_id

Full Changelog: v2.0.0...v2.0.1

πŸ€– Generated with Claude Code