src/Mpesa/B2B/PayMerchant.php
/**
     * Unique command for each transaction.
     *
     * @param string $command
     **/
Unique command for each transaction.
@param string $command
Unique command for each transaction . @param string $command
public function occasion(string $command)
    {
        $commands = [
                        'BusinessPayBill',
                        'MerchantToMerchantTransfer',
                        'MerchantTransferFromMerchantToWorking',
                        'MerchantServicesMMFAccountTransfer',
                        'AgencyFloatAdvance',
                    ];
        if (\in_array($command, $commands)) {
            throw new \InvalidArgumentException(" The CommandID {$command} is not supported for the B2B API");
        }
        $this->command = $command;
        return $this;
    }
public function occasion ( string $ command ) { $ commands = [ 'BusinessPayBill' , 'MerchantToMerchantTransfer' , 'MerchantTransferFromMerchantToWorking' , 'MerchantServicesMMFAccountTransfer' , 'AgencyFloatAdvance' , ] ; if ( \ in_array ( $ command , $ commands ) ) { throw new \ InvalidArgumentException ( "  The CommandID  { $ command }  is not supported for the B2B API " ) ; } $ this -> command = $ command ; return $ this ; }
Unique command for each transaction.
Unique command for each transaction .