diff --git a/src/Transaction.php b/src/Transaction.php index 17962cd..4df9813 100644 --- a/src/Transaction.php +++ b/src/Transaction.php @@ -247,6 +247,12 @@ public function valid() $errors[] = Validator::set($params, 'pan') ? null : 'Credit card number not provided.'; $errors[] = Validator::set($params, 'expdate') ? null : 'Expiry date not provided.'; + break; + case 'res_update_cc': + $errors[] = Validator::set($params, 'data_key') ? null : 'Data key not provided.'; + $errors[] = Validator::set($params, 'pan') ? null : 'Credit card number not provided.'; + $errors[] = Validator::set($params, 'expdate') ? null : 'Expiry date not provided.'; + break; default: $errors[] = $params['type'].' is not a supported transaction type.';