mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
fix: add currency in verify request data (#619)
This commit is contained in:
@ -523,6 +523,7 @@ impl<F: Clone> TryFrom<PaymentData<F>> for types::VerifyRequestData {
|
||||
|
||||
fn try_from(payment_data: PaymentData<F>) -> Result<Self, Self::Error> {
|
||||
Ok(Self {
|
||||
currency: payment_data.currency,
|
||||
confirm: true,
|
||||
payment_method_data: payment_data
|
||||
.payment_method_data
|
||||
|
||||
@ -151,6 +151,7 @@ pub struct PaymentsSessionData {
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
pub struct VerifyRequestData {
|
||||
pub currency: storage_enums::Currency,
|
||||
pub payment_method_data: payments::PaymentMethod,
|
||||
pub confirm: bool,
|
||||
pub statement_descriptor_suffix: Option<String>,
|
||||
|
||||
Reference in New Issue
Block a user