mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 11:24:45 +08:00
fix: payment_id and client_secret in session response (#199)
This commit is contained in:
committed by
GitHub
parent
9e0deac3c5
commit
de30489ce3
@ -165,6 +165,12 @@ where
|
||||
) -> RouterResponse<Self> {
|
||||
Ok(services::BachResponse::Json(Self {
|
||||
session_token: payment_data.sessions_token,
|
||||
payment_id: payment_data.payment_attempt.payment_id,
|
||||
client_secret: payment_data
|
||||
.payment_intent
|
||||
.client_secret
|
||||
.get_required_value("client_secret")?
|
||||
.into(),
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user