mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 18:17:13 +08:00 
			
		
		
		
	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:
		| @ -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(), | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Arjun Karthik
					Arjun Karthik