<?php

// Stripe configuration (test mode supported).
// Prefer environment variables in production.

if (!defined('STRIPE_SECRET_KEY')) {
    define('STRIPE_SECRET_KEY', getenv('STRIPE_SECRET_KEY') ?: 'sk_test_51TC3F8KeTPKoBB19Gr9KdBXQv4M6KxLfXehj1RMPWMKpFqIHklOtToorSdmekBn1kbjyYkEBBw0SL4wYhKWDpvCM00IDRpqNiY');
}

if (!defined('STRIPE_WEBHOOK_SECRET')) {
    define('STRIPE_WEBHOOK_SECRET', getenv('STRIPE_WEBHOOK_SECRET') ?: 'whsec_WLzhrgbg44Q0sr4im0CxjTaNiqCUp1Jk');
}

if (!defined('STRIPE_CHECKOUT_SUCCESS_URL')) {
    // Should be a publicly accessible URL. Stripe will append ?session_id={CHECKOUT_SESSION_ID}
    define('STRIPE_CHECKOUT_SUCCESS_URL', getenv('STRIPE_CHECKOUT_SUCCESS_URL') ?: '');
}

if (!defined('STRIPE_CHECKOUT_CANCEL_URL')) {
    define('STRIPE_CHECKOUT_CANCEL_URL', getenv('STRIPE_CHECKOUT_CANCEL_URL') ?: '');
}

if (!defined('STRIPE_PUBLIC_BASE_URL')) {
    // Example: https://yourdomain.com (no trailing slash)
    define('STRIPE_PUBLIC_BASE_URL', getenv('STRIPE_PUBLIC_BASE_URL') ?: 'https://vintage.espirevox.com/hubspot');
}

// Comma-separated Stripe Checkout payment_method_types, e.g. "card,us_bank_account" (ACH debit).
if (!defined('STRIPE_CHECKOUT_PAYMENT_METHOD_TYPES')) {
    define(
        'STRIPE_CHECKOUT_PAYMENT_METHOD_TYPES',
        getenv('STRIPE_CHECKOUT_PAYMENT_METHOD_TYPES') ?: 'us_bank_account'
    );
}

// For us_bank_account on Checkout: automatic | instant | microdeposits (see Stripe docs for your setup).
if (!defined('STRIPE_US_BANK_VERIFICATION_METHOD')) {
    define(
        'STRIPE_US_BANK_VERIFICATION_METHOD',
        getenv('STRIPE_US_BANK_VERIFICATION_METHOD') ?: 'automatic'
    );
}


