public function setPayment(string $provider_token, string $currency = 'EUR')
    {
        if (!$provider_token) {
            $this->logger->warning('setPayment expects a valid provider token, an invalid one given.');
            throw new BotException('Invalid provider token given to "setPayment"');
        }

        $this->_provider_token = $provider_token;
        $this->_payment_currency = $currency;
    }
public function setPayment(string $provider_token, string $currency = 'EUR')
    {
        if (!$provider_token) {
            $this->logger->warning('setPayment expects a valid provider token, an invalid one given.');
            throw new BotException('Invalid provider token given to "setPayment"');
        }

        $this->_provider_token = $provider_token;
        $this->_payment_currency = $currency;
    }
public function setPayment ( string $ provider_token , string $ currency = 'EUR' ) { if ( ! $ provider_token ) { $ this -> logger -> warning ( 'setPayment expects a valid provider token, an invalid one given.' ) ; throw new BotException ( 'Invalid provider token given to "setPayment"' ) ; } $ this -> _provider_token = $ provider_token ; $ this -> _payment_currency = $ currency ; }
\brief Set data for bot payments used across 'sendInvoice'.
@param string $provider_token The token for the payment provider got using BotFather.
@param string $currency The payment currency (represented with 'ISO 4217 currency mode').
\ brief Set data for bot payments used across sendInvoice .