fix(connector): [NEXIXPAY] Add Validation Checks for Request Fields (#8345)

Co-authored-by: Sayak Bhattacharya <sayak.b@Sayak-Bhattacharya-G092THXJ34.local>
This commit is contained in:
Sayak Bhattacharya
2025-06-23 15:07:31 +05:30
committed by GitHub
parent 7338a8db85
commit 6fd7626c99
6 changed files with 323 additions and 95 deletions

View File

@ -127,6 +127,13 @@ pub enum ConnectorError {
},
#[error("Field {fields} doesn't match with the ones used during mandate creation")]
MandatePaymentDataMismatch { fields: String },
#[error("Field '{field_name}' is too long for connector '{connector}'")]
MaxFieldLengthViolated {
connector: String,
field_name: String,
max_length: usize,
received_length: usize,
},
}
impl ConnectorError {