public function transferCredit(Transfer $transfer)
    {
        $transfer->setRequiredFields(array(
            'amount',
            'linkedAccount',
            'merchantRefNum',
        ));
        $transfer->setOptionalFields(array(
            'detail',
            'dupCheck',
        ));

        $request = new Request(array(
               'method' => Request::POST,
               'uri' => $this->prepareURI($this->creditPath),
               'body' => $transfer
           ));

        $response = $this->client->processRequest($request);

        return new Transfer($response);
    }
public function transferCredit(Transfer $transfer)
    {
        $transfer->setRequiredFields(array(
            'amount',
            'linkedAccount',
            'merchantRefNum',
        ));
        $transfer->setOptionalFields(array(
            'detail',
            'dupCheck',
        ));

        $request = new Request(array(
               'method' => Request::POST,
               'uri' => $this->prepareURI($this->creditPath),
               'body' => $transfer
           ));

        $response = $this->client->processRequest($request);

        return new Transfer($response);
    }
public function transferCredit ( Transfer $ transfer ) { $ transfer -> setRequiredFields ( array ( 'amount' , 'linkedAccount' , 'merchantRefNum' , ) ) ; $ transfer -> setOptionalFields ( array ( 'detail' , 'dupCheck' , ) ) ; $ request = new Request ( array ( 'method' => Request :: POST , 'uri' => $ this -> prepareURI ( $ this -> creditPath ) , 'body' => $ transfer ) ) ; $ response = $ this -> client -> processRequest ( $ request ) ; return new Transfer ( $ response ) ; }
Move funds from the linked account in the body of the request to the account identified in the API endpoint URI.
@param \Paysafe\AccountManagement\Transfer $transfer
@return \Paysafe\AccountManagement\Transfer
Move funds from the linked account in the body of the request to the account identified in the API endpoint URI .