mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-02 04:04:43 +08:00
feat: added client_source, client_version in payment_attempt from payments confirm request headers (#4657)
This commit is contained in:
@ -410,6 +410,8 @@ impl<T: DatabaseStore> PaymentAttemptInterface for KVRouterStore<T> {
|
||||
.payment_method_billing_address_id
|
||||
.clone(),
|
||||
fingerprint_id: payment_attempt.fingerprint_id.clone(),
|
||||
client_source: payment_attempt.client_source.clone(),
|
||||
client_version: payment_attempt.client_version.clone(),
|
||||
};
|
||||
|
||||
let field = format!("pa_{}", created_attempt.attempt_id);
|
||||
@ -1164,6 +1166,8 @@ impl DataModelExt for PaymentAttempt {
|
||||
mandate_data: self.mandate_data.map(|d| d.to_storage_model()),
|
||||
payment_method_billing_address_id: self.payment_method_billing_address_id,
|
||||
fingerprint_id: self.fingerprint_id,
|
||||
client_source: self.client_source,
|
||||
client_version: self.client_version,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1228,6 +1232,8 @@ impl DataModelExt for PaymentAttempt {
|
||||
.map(MandateDetails::from_storage_model),
|
||||
payment_method_billing_address_id: storage_model.payment_method_billing_address_id,
|
||||
fingerprint_id: storage_model.fingerprint_id,
|
||||
client_source: storage_model.client_source,
|
||||
client_version: storage_model.client_version,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1290,6 +1296,8 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
mandate_data: self.mandate_data.map(|d| d.to_storage_model()),
|
||||
payment_method_billing_address_id: self.payment_method_billing_address_id,
|
||||
fingerprint_id: self.fingerprint_id,
|
||||
client_source: self.client_source,
|
||||
client_version: self.client_version,
|
||||
}
|
||||
}
|
||||
|
||||
@ -1352,6 +1360,8 @@ impl DataModelExt for PaymentAttemptNew {
|
||||
.map(MandateDetails::from_storage_model),
|
||||
payment_method_billing_address_id: storage_model.payment_method_billing_address_id,
|
||||
fingerprint_id: storage_model.fingerprint_id,
|
||||
client_source: storage_model.client_source,
|
||||
client_version: storage_model.client_version,
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1470,6 +1480,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
authentication_connector,
|
||||
authentication_id,
|
||||
payment_method_billing_address_id,
|
||||
client_source,
|
||||
client_version,
|
||||
} => DieselPaymentAttemptUpdate::ConfirmUpdate {
|
||||
amount,
|
||||
currency,
|
||||
@ -1498,6 +1510,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
authentication_connector,
|
||||
authentication_id,
|
||||
payment_method_billing_address_id,
|
||||
client_source,
|
||||
client_version,
|
||||
},
|
||||
Self::VoidUpdate {
|
||||
status,
|
||||
@ -1773,6 +1787,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
authentication_connector,
|
||||
authentication_id,
|
||||
payment_method_billing_address_id,
|
||||
client_source,
|
||||
client_version,
|
||||
} => Self::ConfirmUpdate {
|
||||
amount,
|
||||
currency,
|
||||
@ -1801,6 +1817,8 @@ impl DataModelExt for PaymentAttemptUpdate {
|
||||
authentication_connector,
|
||||
authentication_id,
|
||||
payment_method_billing_address_id,
|
||||
client_source,
|
||||
client_version,
|
||||
},
|
||||
DieselPaymentAttemptUpdate::VoidUpdate {
|
||||
status,
|
||||
|
||||
Reference in New Issue
Block a user