MangoPay/ApiUsers.php
public function CreateKycPage($userId, $kycDocumentId, $kycPage, $idempotencyKey = null)
    {
        $uploaded = false;
        try {
            $response = $this->CreateObject('kyc_page_create', $kycPage, null, $userId, $kycDocumentId, $idempotencyKey);
            $uploaded = true;
        } catch (\MangoPay\Libraries\ResponseException $exc) {
            if ($exc->getCode() != 204) {
                throw $exc;
            } else {
                $uploaded = true;
            }
        }
        return $uploaded;
    }
public function CreateKycPage($userId, $kycDocumentId, $kycPage, $idempotencyKey = null)
    {
        $uploaded = false;
        try {
            $response = $this->CreateObject('kyc_page_create', $kycPage, null, $userId, $kycDocumentId, $idempotencyKey);
            $uploaded = true;
        } catch (\MangoPay\Libraries\ResponseException $exc) {
            if ($exc->getCode() != 204) {
                throw $exc;
            } else {
                $uploaded = true;
            }
        }
        return $uploaded;
    }
public function CreateKycPage ( $ userId , $ kycDocumentId , $ kycPage , $ idempotencyKey = null ) { $ uploaded = false ; try { $ response = $ this -> CreateObject ( 'kyc_page_create' , $ kycPage , null , $ userId , $ kycDocumentId , $ idempotencyKey ) ; $ uploaded = true ; } catch ( \ MangoPay \ Libraries \ ResponseException $ exc ) { if ( $ exc -> getCode ( ) != 204 ) { throw $ exc ; } else { $ uploaded = true ; } } return $ uploaded ; }
Create page for Kyc document
@param string $userId User Id
@param string $kycDocumentId KYC Document Id
@param \MangoPay\KycPage $kycPage KYC Page
@return bool `true` if the upload was successful, `false` otherwise
@throws \MangoPay\Libraries\Exception
Create page for Kyc document