You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// Refers to the hash key used for calculating the signature for webhooks and redirect response. If the value is not provided, a default value is used.
72
72
pubpayment_response_hash_key:Option<String>,
73
73
74
-
/// A boolean value to indicate if redirect to merchant with http post needs to be enabled
74
+
/// A boolean value to indicate if redirect to merchant with http post needs to be enabled.
/// You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.
#[error(error_type = StripeErrorType::InvalidRequestError, code = "token_already_used", message = "The merchant connector account with the specified profile_id '{profile_id}' and connector_name '{connector_name}' already exists in our records")]
132
+
#[error(error_type = StripeErrorType::InvalidRequestError, code = "token_already_used", message = "The merchant connector account with the specified profile_id '{profile_id}' and connector_label '{connector_label}' already exists in our records")]
Copy file name to clipboardExpand all lines: crates/router/src/core/errors/api_error_response.rs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -133,10 +133,10 @@ pub enum ApiErrorResponse {
133
133
DuplicateMandate,
134
134
#[error(error_type = ErrorType::DuplicateRequest, code = "HE_01", message = "The merchant account with the specified details already exists in our records")]
135
135
DuplicateMerchantAccount,
136
-
#[error(error_type = ErrorType::DuplicateRequest, code = "HE_01", message = "The merchant connector account with the specified profile_id '{profile_id}' and connector_name '{connector_name}' already exists in our records")]
136
+
#[error(error_type = ErrorType::DuplicateRequest, code = "HE_01", message = "The merchant connector account with the specified profile_id '{profile_id}' and connector_label '{connector_label}' already exists in our records")]
137
137
DuplicateMerchantConnectorAccount{
138
138
profile_id:String,
139
-
connector_name:String,
139
+
connector_label:String,
140
140
},
141
141
#[error(error_type = ErrorType::DuplicateRequest, code = "HE_01", message = "The payment method with the specified details already exists in our records")]
AER::BadRequest(ApiError::new("CE",1,"Payment failed during authorization with connector. Retry payment",Some(Extra{data: data.clone(), ..Default::default()})))
108
108
}
@@ -133,8 +133,8 @@ impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for ApiErrorRespon
133
133
Self::DuplicateRefundRequest => AER::BadRequest(ApiError::new("HE",1,"Duplicate refund request. Refund already attempted with the refund ID",None)),
134
134
Self::DuplicateMandate => AER::BadRequest(ApiError::new("HE",1,"Duplicate mandate request. Mandate already attempted with the Mandate ID",None)),
135
135
Self::DuplicateMerchantAccount => AER::BadRequest(ApiError::new("HE",1,"The merchant account with the specified details already exists in our records",None)),
AER::BadRequest(ApiError::new("HE",1,format!("The merchant connector account with the specified profile_id '{profile_id}' and connector_name '{connector_name}' already exists in our records"),None))
AER::BadRequest(ApiError::new("HE",1,format!("The merchant connector account with the specified profile_id '{profile_id}' and connector_label '{connector_name}' already exists in our records"),None))
138
138
}
139
139
Self::DuplicatePaymentMethod => AER::BadRequest(ApiError::new("HE",1,"The payment method with the specified details already exists in our records",None)),
140
140
Self::DuplicatePayment{ payment_id } => {
@@ -187,7 +187,7 @@ impl ErrorSwitch<api_models::errors::types::ApiErrorResponse> for ApiErrorRespon
187
187
AER::BadRequest(ApiError::new("HE",3,format!("This refund is not possible through Hyperswitch. Please raise the refund through {connector} dashboard"),None))
Self::PaymentNotSucceeded => AER::BadRequest(ApiError::new("HE",3,"The payment has not succeeded yet. Please pass a successful payment to initiate refund",None)),
Copy file name to clipboardExpand all lines: openapi/openapi_spec.json
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9392,7 +9392,7 @@
9392
9392
},
9393
9393
"redirect_to_merchant_with_http_post": {
9394
9394
"type": "boolean",
9395
-
"description": "A boolean value to indicate if redirect to merchant with http post needs to be enabled",
9395
+
"description": "A boolean value to indicate if redirect to merchant with http post needs to be enabled.",
9396
9396
"default": false,
9397
9397
"example": true,
9398
9398
"nullable": true
@@ -9404,7 +9404,7 @@
9404
9404
},
9405
9405
"publishable_key": {
9406
9406
"type": "string",
9407
-
"description": "API key that will be used for server side API access",
9407
+
"description": "API key that will be used for client side API access. A publishable key has to be always paired with a `client_secret`.\nA `client_secret` can be obtained by creating a payment with `confirm` set to false",
9408
9408
"example": "AH3423bkjbkjdsfbkj",
9409
9409
"nullable": true
9410
9410
},
@@ -9480,7 +9480,7 @@
9480
9480
},
9481
9481
"return_url": {
9482
9482
"type": "string",
9483
-
"description": "The URL to redirect after the completion of the operation",
9483
+
"description": "The URL to redirect after completion of the payment",
9484
9484
"example": "https://www.example.com/success",
9485
9485
"nullable": true,
9486
9486
"maxLength": 255
Collapse file: postman/collection-dir/stripe/PaymentConnectors/Payment Connector - Create Multiple/Create First Connector/.event.meta.json
0 commit comments