diff --git a/api-reference/openapi_spec.json b/api-reference/openapi_spec.json index 3e94666e40..ed5757c187 100644 --- a/api-reference/openapi_spec.json +++ b/api-reference/openapi_spec.json @@ -19319,8 +19319,7 @@ "type": "string", "description": "The URL to which you want the user to be redirected after the completion of the payment operation", "example": "https://hyperswitch.io", - "nullable": true, - "maxLength": 255 + "nullable": true }, "setup_future_usage": { "allOf": [ @@ -19729,8 +19728,7 @@ "type": "string", "description": "The URL to which you want the user to be redirected after the completion of the payment operation", "example": "https://hyperswitch.io", - "nullable": true, - "maxLength": 255 + "nullable": true }, "setup_future_usage": { "allOf": [ @@ -20997,8 +20995,7 @@ "type": "string", "description": "The URL to which you want the user to be redirected after the completion of the payment operation", "example": "https://hyperswitch.io", - "nullable": true, - "maxLength": 255 + "nullable": true }, "setup_future_usage": { "allOf": [ @@ -22218,8 +22215,7 @@ "type": "string", "description": "The URL to which you want the user to be redirected after the completion of the payment operation", "example": "https://hyperswitch.io", - "nullable": true, - "maxLength": 255 + "nullable": true }, "setup_future_usage": { "allOf": [ diff --git a/crates/api_models/src/payments.rs b/crates/api_models/src/payments.rs index fd150d0fda..4b17d1e3ca 100644 --- a/crates/api_models/src/payments.rs +++ b/crates/api_models/src/payments.rs @@ -964,7 +964,7 @@ pub struct PaymentsRequest { pub description: Option, /// The URL to which you want the user to be redirected after the completion of the payment operation - #[schema(value_type = Option, example = "https://hyperswitch.io", max_length = 255)] + #[schema(value_type = Option, example = "https://hyperswitch.io")] pub return_url: Option, #[schema(value_type = Option, example = "off_session")] diff --git a/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js b/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js index 8d9dd20df4..0720130d49 100644 --- a/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js +++ b/cypress-tests/cypress/e2e/spec/Payment/00022-Variations.cy.js @@ -152,16 +152,16 @@ describe("Corner cases", () => { ); }); - it("[Payment] return_url - too long", () => { - const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_too_long"]; - cy.createConfirmPaymentTest( - paymentCreateConfirmBody, - data, - "no_three_ds", - "automatic", - globalState - ); - }); + // it("[Payment] return_url - too long", () => { + // const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_too_long"]; + // cy.createConfirmPaymentTest( + // paymentCreateConfirmBody, + // data, + // "no_three_ds", + // "automatic", + // globalState + // ); + // }); it("[Payment] return_url - invalid format", () => { const data = getConnectorDetails(globalState.get("connectorId"))["return_url_variations"]["return_url_invalid_format"];