feat(connector): [Trustpay] Add descriptor for card payment method for trustpay (#2256)

This commit is contained in:
Prasunna Soppa
2023-09-22 11:41:14 +05:30
committed by GitHub
parent 8f3721d16b
commit b9ddc4fb69

View File

@ -171,6 +171,7 @@ pub struct PaymentRequestCards {
pub payment_action: Option<String>,
#[serde(rename = "browser[paymentType]")]
pub payment_type: String,
pub descriptor: Option<String>,
}
#[derive(Debug, Serialize, PartialEq)]
@ -272,6 +273,7 @@ fn get_card_request_data(
browser_challenge_window: "1".to_string(),
payment_action: None,
payment_type: "Plain".to_string(),
descriptor: item.request.statement_descriptor.clone(),
},
)))
}