Block/Js.php
public function getInitiateCheckout()
    {
        $flag = $this->checkoutSession->getBoltInitiateCheckout();
        $this->checkoutSession->unsBoltInitiateCheckout();
        return (bool)$flag;
    }
public function getInitiateCheckout()
    {
        $flag = $this->checkoutSession->getBoltInitiateCheckout();
        $this->checkoutSession->unsBoltInitiateCheckout();
        return (bool)$flag;
    }
public function getInitiateCheckout ( ) { $ flag = $ this -> checkoutSession -> getBoltInitiateCheckout ( ) ; $ this -> checkoutSession -> unsBoltInitiateCheckout ( ) ; return ( bool ) $ flag ; }
Gets the auto-open Bolt checkout session flag, and then unsets it so that it is only used once.

@return bool
Gets the auto - open Bolt checkout session flag and then unsets it so that it is only used once .