public function sendBill($bill, callable $onSuccess, callable $onFailure)
    {
        // return if the bill is not defined by creating one.
        if ($bill === false) {
            return;
        }

        $currencyEntry = new CurrencyEntry();
        $currencyEntry->setBill($bill);
        $currencyEntry->setSuccessCallback($onSuccess);
        $currencyEntry->setFailureCallback($onFailure);
        $this->currencyPlugin->sendBill($currencyEntry);

    }
public function sendBill($bill, callable $onSuccess, callable $onFailure)
    {
        // return if the bill is not defined by creating one.
        if ($bill === false) {
            return;
        }

        $currencyEntry = new CurrencyEntry();
        $currencyEntry->setBill($bill);
        $currencyEntry->setSuccessCallback($onSuccess);
        $currencyEntry->setFailureCallback($onFailure);
        $this->currencyPlugin->sendBill($currencyEntry);

    }
public function sendBill ( $ bill , callable $ onSuccess , callable $ onFailure ) { // return if the bill is not defined by creating one. if ( $ bill === false ) { return ; } $ currencyEntry = new CurrencyEntry ( ) ; $ currencyEntry -> setBill ( $ bill ) ; $ currencyEntry -> setSuccessCallback ( $ onSuccess ) ; $ currencyEntry -> setFailureCallback ( $ onFailure ) ; $ this -> currencyPlugin -> sendBill ( $ currencyEntry ) ; }
Send bill to login
Server needs to have in-game currency for sending a bill.

@param mixed    $bill
@param callable $onSuccess
@param callable $onFailure
@return void
Send bill to login Server needs to have in - game currency for sending a bill .