feat(router): add support for payment_type field in payment intent (#2448)

This commit is contained in:
ItsMeShashank
2023-10-05 16:30:47 +05:30
committed by GitHub
parent db7f9fa801
commit f116728d1c
16 changed files with 126 additions and 2 deletions

View File

@ -105,6 +105,7 @@ pub struct PaymentIntent {
// Manual review can occur when the transaction is marked as risky by the frm_processor, payment processor or when there is underpayment/over payment incase of crypto payment
pub merchant_decision: Option<String>,
pub payment_confirm_source: Option<storage_enums::PaymentSource>,
pub payment_type: Option<storage_enums::PaymentType>,
}
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize, Deserialize)]
@ -144,6 +145,7 @@ pub struct PaymentIntentNew {
pub profile_id: Option<String>,
pub merchant_decision: Option<String>,
pub payment_confirm_source: Option<storage_enums::PaymentSource>,
pub payment_type: Option<storage_enums::PaymentType>,
}
#[derive(Debug, Clone, Serialize, Deserialize)]