lib/Pencepay/User.php
public static function enable2FA($userUid, $authenticationKey, $verificationCode) {
        $request = array(
            'authenticationKey' => $authenticationKey,
            'verificationCode' => $verificationCode
        );
        return Pencepay_Util_HttpClient::postArray("/user/$userUid/tfa_enable", $request);
    }
public static function enable2FA($userUid, $authenticationKey, $verificationCode) {
        $request = array(
            'authenticationKey' => $authenticationKey,
            'verificationCode' => $verificationCode
        );
        return Pencepay_Util_HttpClient::postArray("/user/$userUid/tfa_enable", $request);
    }
public static function enable2FA ( $ userUid , $ authenticationKey , $ verificationCode ) { $ request = array ( 'authenticationKey' => $ authenticationKey , 'verificationCode' => $ verificationCode ) ; return Pencepay_Util_HttpClient :: postArray ( "/user/$userUid/tfa_enable" , $ request ) ; }
Enables the two-factor authentication for this user.

@param string $userUid
@param string $authenticationKey
@param string $verificationCode
@return array
Enables the two - factor authentication for this user .