<?php

namespace Booktics\Module\Stripe_Addon;

if ( ! defined( 'ABSPATH' ) ) exit;

use Booktics\Module\Stripe_Addon\Assets\Stripe_Frontend_Assets;
use Booktics\Module\Stripe_Addon\Hook\Stripe_Hook;
use Booktics\Providers\Base_Service_Provider;

class Stripe_Service_Provider extends Base_Service_Provider {
    /**
     * Store service instances
     */
    protected array $services = array(
        Stripe_Hook::class,
        Stripe_Frontend_Assets::class,
    );

    /**
     * Register services
     *
     * @return  void
     */
    public function get_services() {
        defined( 'BOOKTICS_STRIPE_FILE' ) || define( 'BOOKTICS_STRIPE_FILE', __FILE__ );
        defined( 'BOOKTICS_STRIPE_DIR' ) || define( 'BOOKTICS_STRIPE_DIR', __DIR__ );
        defined( 'BOOKTICS_STRIPE_CONNECT_DOMAIN' ) || define( 'BOOKTICS_STRIPE_CONNECT_DOMAIN', 'https://products.arraytics.com/payment-connect-manager' );

        return apply_filters( 'booktics_stripe_services', $this->services );
    }
}
