feat: remove client_secret from payment_intent and update related code (#7648)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Gaurav Rawat
2025-04-10 18:33:44 +05:30
committed by GitHub
parent 62436454e1
commit 5730ddfc88
24 changed files with 86 additions and 385 deletions

View File

@ -483,8 +483,8 @@ pub struct PaymentsIntentResponse {
pub amount_details: AmountDetailsResponse,
/// It's a token used for client side verification.
#[schema(value_type = String, example = "pay_U42c409qyHwOkWo3vK60_secret_el9ksDkiB8hi6j9N78yo")]
pub client_secret: common_utils::types::ClientSecret,
#[schema(value_type = String, example = "cs_0195b34da95d75239c6a4bf514458896")]
pub client_secret: Option<Secret<String>>,
/// The identifier for the profile. This is inferred from the `x-profile-id` header
#[schema(value_type = String)]
@ -5607,10 +5607,6 @@ pub struct PaymentsResponse {
#[schema(example = "stripe")]
pub connector: Option<String>,
/// It's a token used for client side verification.
#[schema(value_type = String)]
pub client_secret: common_utils::types::ClientSecret,
/// Time when the payment was created
#[schema(example = "2022-09-10T10:11:12Z")]
#[serde(with = "common_utils::custom_serde::iso8601")]