Files
fotospiel-app/config/lemonsqueezy.php
Codex Agent 10c99de1e2
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (push) Has been cancelled
tests / ui (push) Has been cancelled
Migrate billing from Paddle to Lemon Squeezy
2026-02-03 10:59:54 +01:00

13 lines
673 B
PHP

<?php
$testMode = filter_var(env('LEMONSQUEEZY_TEST_MODE', false), FILTER_VALIDATE_BOOLEAN);
return [
'api_key' => env('LEMONSQUEEZY_API_KEY'),
'store_id' => env('LEMONSQUEEZY_STORE_ID', '284860'),
'test_mode' => $testMode,
'webhook_secret' => env('LEMONSQUEEZY_WEBHOOK_SECRET'),
'webhook_events' => array_filter(array_map('trim', explode(',', (string) env('LEMONSQUEEZY_WEBHOOK_EVENTS', 'order_created,order_updated,order_payment_failed,order_refunded,subscription_created,subscription_updated,subscription_cancelled,subscription_expired,subscription_paused')))),
'base_url' => env('LEMONSQUEEZY_BASE_URL', 'https://api.lemonsqueezy.com/v1'),
];