mirror of
				https://github.com/juspay/hyperswitch.git
				synced 2025-10-31 10:06:32 +08:00 
			
		
		
		
	fix(connector): [Payme] Fix refund request fields (#1831)
This commit is contained in:
		| @ -242,6 +242,7 @@ impl TryFrom<&types::PaymentsAuthorizeRouterData> for PayRequest { | ||||
|  | ||||
| // Auth Struct | ||||
| pub struct PaymeAuthType { | ||||
|     #[allow(dead_code)] | ||||
|     pub(super) payme_client_key: Secret<String>, | ||||
|     pub(super) seller_payme_id: Secret<String>, | ||||
| } | ||||
| @ -361,7 +362,6 @@ pub struct PaymeRefundRequest { | ||||
|     sale_refund_amount: i64, | ||||
|     payme_sale_id: String, | ||||
|     seller_payme_id: Secret<String>, | ||||
|     payme_client_key: Secret<String>, | ||||
| } | ||||
|  | ||||
| impl<F> TryFrom<&types::RefundsRouterData<F>> for PaymeRefundRequest { | ||||
| @ -371,7 +371,6 @@ impl<F> TryFrom<&types::RefundsRouterData<F>> for PaymeRefundRequest { | ||||
|         Ok(Self { | ||||
|             payme_sale_id: item.request.connector_transaction_id.clone(), | ||||
|             seller_payme_id: auth_type.seller_payme_id, | ||||
|             payme_client_key: auth_type.payme_client_key, | ||||
|             sale_refund_amount: item.request.refund_amount, | ||||
|         }) | ||||
|     } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Arjun Karthik
					Arjun Karthik