fix(connector): fix for sending refund_amount in connectors refund request (#1278)

Co-authored-by: Narayan Bhat <48803246+Narayanbhat166@users.noreply.github.com>
This commit is contained in:
Arjun Karthik
2023-06-15 14:06:27 +05:30
committed by GitHub
parent 1e5d2a28f6
commit 016857fff0
15 changed files with 94 additions and 82 deletions

View File

@ -52,7 +52,7 @@ pub async fn construct_refund_router_data<'a, F>(
let status = payment_attempt.status;
let (amount, currency) = money;
let (payment_amount, currency) = money;
let payment_method_type = payment_attempt
.payment_method
@ -87,7 +87,7 @@ pub async fn construct_refund_router_data<'a, F>(
connector_transaction_id: refund.connector_transaction_id.clone(),
refund_amount: refund.refund_amount,
currency,
amount,
payment_amount,
webhook_url,
connector_metadata: payment_attempt.connector_metadata.clone(),
reason: refund.refund_reason.clone(),