original_string: 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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: \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').
docstring_tokens: \ brief Set data for bot payments used across sendInvoice .