mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
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:
@ -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")]
|
||||
|
||||
Reference in New Issue
Block a user