27 lines
905 B
PHP
27 lines
905 B
PHP
<?php
|
|
|
|
// Stripe API configuration
|
|
define('STRIPE_API_KEY', getenv('STRIPE_API_KEY') ?: 'sk_test_...');
|
|
define('STRIPE_PUBLISHABLE_KEY', getenv('STRIPE_PUBLISHABLE_KEY') ?: 'pk_test_...');
|
|
define('STRIPE_WEBHOOK_SECRET', getenv('STRIPE_WEBHOOK_SECRET') ?: 'whsec_...');
|
|
|
|
// Subscription products for coaches
|
|
// In a real application, you would have a UI for coaches to create and manage these.
|
|
// For now, we'll use a hardcoded array of subscription options.
|
|
$subscriptions = [
|
|
'monthly-basic' => [
|
|
'name' => 'Basic Subscription',
|
|
'price' => 10000, // in cents, e.g., $100.00
|
|
'currency' => 'usd',
|
|
'interval' => 'month',
|
|
'sessions' => 4,
|
|
],
|
|
'monthly-premium' => [
|
|
'name' => 'Premium Subscription',
|
|
'price' => 18000, // in cents, e.g., $180.00
|
|
'currency' => 'usd',
|
|
'interval' => 'month',
|
|
'sessions' => 8,
|
|
],
|
|
];
|