Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

fix(connector): [Payme] Fix refund request fields (#1831)

Arjun Karthik6f8be0c675cb
diff --git a/crates/router/src/connector/payme/transformers.rs b/crates/router/src/connector/payme/transformers.rs
index 9d11e17ce3..ef05be2211 100644
--- a/crates/router/src/connector/payme/transformers.rs
+++ b/crates/router/src/connector/payme/transformers.rs
@@ -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,
})
}