mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
fix(gpay): send merchant info field (#358)
This commit is contained in:
@ -819,7 +819,7 @@ pub struct GpayMetadata {
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
|
||||
pub struct GpaySessionTokenData {
|
||||
pub gpay: GpayMetadata,
|
||||
pub data: GpayMetadata,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize)]
|
||||
@ -827,7 +827,8 @@ pub struct GpaySessionTokenData {
|
||||
#[serde(rename_all = "lowercase")]
|
||||
pub enum SessionToken {
|
||||
Gpay {
|
||||
allowed_payment_methods: Vec<GpayAllowedPaymentMethods>,
|
||||
#[serde(flatten)]
|
||||
data: GpayMetadata,
|
||||
transaction_info: GpayTransactionInfo,
|
||||
},
|
||||
Klarna {
|
||||
|
||||
@ -84,7 +84,7 @@ fn create_gpay_session_token(
|
||||
let response_router_data = types::PaymentsSessionRouterData {
|
||||
response: Ok(types::PaymentsResponseData::SessionResponse {
|
||||
session_token: payment_types::SessionToken::Gpay {
|
||||
allowed_payment_methods: gpay_data.gpay.allowed_payment_methods,
|
||||
data: gpay_data.data,
|
||||
transaction_info,
|
||||
},
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user