feat: Session flow for Apple Pay trustpay (#1155)

This commit is contained in:
Sangamesh Kulkarni
2023-06-07 20:27:19 +05:30
committed by GitHub
parent d21fcc7bfc
commit a6e91a828b
23 changed files with 541 additions and 115 deletions

View File

@ -159,6 +159,9 @@ pub enum PaymentAttemptUpdate {
error_code: Option<Option<String>>,
error_message: Option<Option<String>>,
},
SessionUpdate {
connector_transaction_id: Option<String>,
},
StatusUpdate {
status: storage_enums::AttemptStatus,
},
@ -390,6 +393,12 @@ impl From<PaymentAttemptUpdate> for PaymentAttemptUpdateInternal {
preprocessing_step_id,
..Default::default()
},
PaymentAttemptUpdate::SessionUpdate {
connector_transaction_id,
} => Self {
connector_transaction_id,
..Default::default()
},
}
}
}