diff --git a/src/Transaction.php b/src/Transaction.php index fa9c88b..9b52861 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -256,6 +256,7 @@ public function valid() break; case 'res_delete': + case 'res_lookup_full': case 'res_lookup_masked': $errors[] = Validator::set($params, 'data_key') ? null : 'Data key not provided.'; diff --git a/src/Vault.php b/src/Vault.php index 3aa45af..d7ac3b5 100644 --- a/src/Vault.php +++ b/src/Vault.php @@ -87,13 +87,14 @@ public static function create(string $id, string $token, string $environment) * profile associated with a given data key. * * @param string $key + * @param bool $full * * @return \CraigPaul\Moneris\Response */ - public function peek(string $key) + public function peek(string $key, bool $full = false) { $params = [ - 'type' => 'res_lookup_masked', + 'type' => $full ? 'res_lookup_full' : 'res_lookup_masked', 'data_key' => $key, ];