mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 17:47:54 +08:00
fix(refund): add merchant_connector_id in refund (#3303)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -650,6 +650,7 @@ pub async fn validate_and_create_refund(
|
||||
.set_attempt_id(payment_attempt.attempt_id.clone())
|
||||
.set_refund_reason(req.reason)
|
||||
.set_profile_id(payment_intent.profile_id.clone())
|
||||
.set_merchant_connector_id(payment_attempt.merchant_connector_id.clone())
|
||||
.to_owned();
|
||||
|
||||
let refund = match db
|
||||
@ -776,6 +777,7 @@ impl ForeignFrom<storage::Refund> for api::RefundResponse {
|
||||
created_at: Some(refund.created_at),
|
||||
updated_at: Some(refund.updated_at),
|
||||
connector: refund.connector,
|
||||
merchant_connector_id: refund.merchant_connector_id,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user