mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
fix(connector): [Cashtocode] update amount from i64 to f64 in webhook payload (#3382)
This commit is contained in:
@ -193,7 +193,7 @@ pub struct CashtocodePaymentsResponseData {
|
|||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct CashtocodePaymentsSyncResponse {
|
pub struct CashtocodePaymentsSyncResponse {
|
||||||
pub transaction_id: String,
|
pub transaction_id: String,
|
||||||
pub amount: i64,
|
pub amount: f64,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_redirect_form_data(
|
fn get_redirect_form_data(
|
||||||
@ -314,7 +314,6 @@ impl<F, T>
|
|||||||
connector_response_reference_id: None,
|
connector_response_reference_id: None,
|
||||||
incremental_authorization_allowed: None,
|
incremental_authorization_allowed: None,
|
||||||
}),
|
}),
|
||||||
amount_captured: Some(item.response.amount),
|
|
||||||
..item.data
|
..item.data
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
@ -330,7 +329,7 @@ pub struct CashtocodeErrorResponse {
|
|||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
#[serde(rename_all = "camelCase")]
|
#[serde(rename_all = "camelCase")]
|
||||||
pub struct CashtocodeIncomingWebhook {
|
pub struct CashtocodeIncomingWebhook {
|
||||||
pub amount: i64,
|
pub amount: f64,
|
||||||
pub currency: String,
|
pub currency: String,
|
||||||
pub foreign_transaction_id: String,
|
pub foreign_transaction_id: String,
|
||||||
#[serde(rename = "type")]
|
#[serde(rename = "type")]
|
||||||
|
|||||||
Reference in New Issue
Block a user