mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +08:00
chore: name variables appropriately
This commit is contained in:
@ -138,16 +138,16 @@ impl UnifiedConnectorServiceClient {
|
||||
}
|
||||
}
|
||||
|
||||
/// Performs Payment Authorize
|
||||
/// Performs Payment Pre Authenticate
|
||||
pub async fn payment_pre_authenticate(
|
||||
&self,
|
||||
payment_authorize_request: payments_grpc::PaymentServicePreAuthenticateRequest,
|
||||
payment_pre_authenticate_request: payments_grpc::PaymentServicePreAuthenticateRequest,
|
||||
connector_auth_metadata: ConnectorAuthMetadata,
|
||||
grpc_headers: GrpcHeadersUcs,
|
||||
) -> UnifiedConnectorServiceResult<
|
||||
tonic::Response<payments_grpc::PaymentServicePreAuthenticateResponse>,
|
||||
> {
|
||||
let mut request = tonic::Request::new(payment_authorize_request);
|
||||
let mut request = tonic::Request::new(payment_pre_authenticate_request);
|
||||
|
||||
let connector_name = connector_auth_metadata.connector_name.clone();
|
||||
let metadata =
|
||||
@ -159,7 +159,7 @@ impl UnifiedConnectorServiceClient {
|
||||
.clone()
|
||||
.pre_authenticate(request)
|
||||
.await
|
||||
.change_context(UnifiedConnectorServiceError::PaymentAuthorizeFailure)
|
||||
.change_context(UnifiedConnectorServiceError::PaymentPreAuthenticateFailure)
|
||||
.inspect_err(|error| {
|
||||
logger::error!(
|
||||
grpc_error=?error,
|
||||
|
||||
@ -73,6 +73,10 @@ pub enum UnifiedConnectorServiceError {
|
||||
#[error("Failed to perform Payment Authorize from gRPC Server")]
|
||||
PaymentAuthorizeFailure,
|
||||
|
||||
/// Failed to perform Payment Authenticate from gRPC Server
|
||||
#[error("Failed to perform Payment Pre Authenticate from gRPC Server")]
|
||||
PaymentPreAuthenticateFailure,
|
||||
|
||||
/// Failed to perform Payment Get from gRPC Server
|
||||
#[error("Failed to perform Payment Get from gRPC Server")]
|
||||
PaymentGetFailure,
|
||||
|
||||
Reference in New Issue
Block a user