fix: add currency in verify request data (#619)

This commit is contained in:
Nishant Joshi
2023-02-24 18:16:24 +05:30
committed by GitHub
parent b1a6be5a7c
commit 32de632ded
2 changed files with 2 additions and 0 deletions

View File

@ -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

View File

@ -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>,