<?php

namespace Devurai\AcceptbluePaymentPro;


use Devurai\AcceptbluePaymentPro\Common\PaymentGatewayRegistrator;
use Devurai\AcceptbluePaymentPro\GooglePay\GooglePayButton;

use Devurai\AcceptbluePaymentPro\Surcharge\Surcharge;

class Bootstrap
{
    public function __construct()
    {
        $this->init_surcharge();
        $this->init_google_pay();
    }

    private function init_surcharge(): void
    {
        new Surcharge();
    }

    public function init_google_pay(): void
    {
        new GooglePayButton();
        PaymentGatewayRegistrator::register_gateway(
            'Devurai\AcceptbluePaymentPro\GooglePay\WC_AcceptBlue_GooglePay_Gateway'
        );
        PaymentGatewayRegistrator::register_gateway_block(
            'Devurai\AcceptbluePaymentPro\GooglePay\WC_AcceptBlue_GooglePay_Block',
            'acceptblue-google-pay'
        );
    }
}