public function createMandates(CustomerVault\Mandates $mandates ,$bankaccounts) {
         $mandates->setRequiredFields(array(
             'reference'
        ));
        $mandates->checkRequiredFields();
        
           $request = new Request(array(
             'method' => Request::POST,
             'uri' => $this->prepareURI("/profiles/" . $mandates->profileID."/".$bankaccounts."/".$mandates->bankAccountId."/mandates"),
             'body' => $mandates
            ));

        $response = $this->client->processRequest($request);
        return new CustomerVault\Mandates($response);
        
    }
public function createMandates(CustomerVault\Mandates $mandates ,$bankaccounts) {
         $mandates->setRequiredFields(array(
             'reference'
        ));
        $mandates->checkRequiredFields();
        
           $request = new Request(array(
             'method' => Request::POST,
             'uri' => $this->prepareURI("/profiles/" . $mandates->profileID."/".$bankaccounts."/".$mandates->bankAccountId."/mandates"),
             'body' => $mandates
            ));

        $response = $this->client->processRequest($request);
        return new CustomerVault\Mandates($response);
        
    }
public function createMandates ( CustomerVault \ Mandates $ mandates , $ bankaccounts ) { $ mandates -> setRequiredFields ( array ( 'reference' ) ) ; $ mandates -> checkRequiredFields ( ) ; $ request = new Request ( array ( 'method' => Request :: POST , 'uri' => $ this -> prepareURI ( "/profiles/" . $ mandates -> profileID . "/" . $ bankaccounts . "/" . $ mandates -> bankAccountId . "/mandates" ) , 'body' => $ mandates ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new CustomerVault \ Mandates ( $ response ) ; }
Process Create a Mandate.
@param \Paysafe\CustomerVault\Mandate $mandate
@return \Paysafe\CustomerVault\Mandate
@throws PaysafeException
Process Create a Mandate .