MangoPay/ApiUsers.php
public function CreateKycDocument($userId, $kycDocument, $idempotencyKey = null)
    {
        return $this->CreateObject('kyc_documents_create', $kycDocument, '\MangoPay\KycDocument', $userId, null, $idempotencyKey);
    }
public function CreateKycDocument($userId, $kycDocument, $idempotencyKey = null)
    {
        return $this->CreateObject('kyc_documents_create', $kycDocument, '\MangoPay\KycDocument', $userId, null, $idempotencyKey);
    }
public function CreateKycDocument ( $ userId , $ kycDocument , $ idempotencyKey = null ) { return $ this -> CreateObject ( 'kyc_documents_create' , $ kycDocument , '\MangoPay\KycDocument' , $ userId , null , $ idempotencyKey ) ; }
Create new KYC document
@param string $userId User Id
@param \MangoPay\KycDocument $kycDocument
@param string $idempotencyKey Key for response replication
@return \MangoPay\KycDocument Document returned from API
Create new KYC document