Migrate billing from Paddle to Lemon Squeezy
This commit is contained in:
12
config/lemonsqueezy.php
Normal file
12
config/lemonsqueezy.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<?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'),
|
||||
];
|
||||
Reference in New Issue
Block a user