mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 03:13:56 +08:00
feat(connector): [Redsys] Use merchant payment_id for ds_merchant_order with length check (#8485)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -236,6 +236,7 @@ impl PaymentAttemptInterface for MockDb {
|
||||
created_by: payment_attempt.created_by,
|
||||
setup_future_usage_applied: payment_attempt.setup_future_usage_applied,
|
||||
routing_approach: payment_attempt.routing_approach,
|
||||
connector_request_reference_id: payment_attempt.connector_request_reference_id,
|
||||
};
|
||||
payment_attempts.push(payment_attempt.clone());
|
||||
Ok(payment_attempt)
|
||||
|
||||
@ -686,6 +686,9 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
|
||||
created_by: payment_attempt.created_by.clone(),
|
||||
setup_future_usage_applied: payment_attempt.setup_future_usage_applied,
|
||||
routing_approach: payment_attempt.routing_approach,
|
||||
connector_request_reference_id: payment_attempt
|
||||
.connector_request_reference_id
|
||||
.clone(),
|
||||
};
|
||||
|
||||
let field = format!("pa_{}", created_attempt.attempt_id);
|
||||
@ -1893,6 +1896,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
connector_transaction_data: None,
|
||||
processor_merchant_id: Some(self.processor_merchant_id),
|
||||
created_by: self.created_by.map(|created_by| created_by.to_string()),
|
||||
connector_request_reference_id: self.connector_request_reference_id,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1984,6 +1988,7 @@ impl DataModelExt for PaymentAttempt {
|
||||
.and_then(|created_by| created_by.parse::<CreatedBy>().ok()),
|
||||
setup_future_usage_applied: storage_model.setup_future_usage_applied,
|
||||
routing_approach: storage_model.routing_approach,
|
||||
connector_request_reference_id: storage_model.connector_request_reference_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -2074,6 +2079,7 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
created_by: self.created_by.map(|created_by| created_by.to_string()),
|
||||
setup_future_usage_applied: self.setup_future_usage_applied,
|
||||
routing_approach: self.routing_approach,
|
||||
connector_request_reference_id: self.connector_request_reference_id,
|
||||
}
|
||||
}
|
||||
|
||||
@ -2157,6 +2163,7 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
.and_then(|created_by| created_by.parse::<CreatedBy>().ok()),
|
||||
setup_future_usage_applied: storage_model.setup_future_usage_applied,
|
||||
routing_approach: storage_model.routing_approach,
|
||||
connector_request_reference_id: storage_model.connector_request_reference_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user