src/Mpesa/B2B/PayMerchant.php
/**
     * Set the Merchant paybill number for the business receiving the money.
     *
     * @param int $number
     *
     * @return $this
     */
Set the Merchant paybill number for the business receiving the money.
@param int $number

@return $this
Set the Merchant paybill number for the business receiving the money . @param int $number @return $this
public function toMerchant(int $merchantPaybill, int $identifierType = 4)
    {
        if (!\in_array($identifierType, [1, 2, 4])) {
            throw new \InvalidArgumentException("The Identifier type $identifierType is not supported");
        }
        $this->partyB         = $merchantPaybill;
        $this->identifierType = $identifierType;
        return $this;
    }
public function toMerchant ( int $ merchantPaybill , int $ identifierType = 4 ) { if ( ! \ in_array ( $ identifierType , [ 1 , 2 , 4 ] ) ) { throw new \ InvalidArgumentException ( " The Identifier type  $ identifierType  is not supported " ) ; } $ this -> partyB = $ merchantPaybill ; $ this -> identifierType = $ identifierType ; return $ this ; }
Set the Merchant paybill number for the business receiving the money.
Set the Merchant paybill number for the business receiving the money .