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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(recon): update recipient email and mail body for ProFeatureRequest (#3381)
Kashif5a791aaf4dc0
diff --git a/crates/router/src/routes/recon.rs b/crates/router/src/routes/recon.rsindex d34e30237d..22c886e135 100644--- a/crates/router/src/routes/recon.rs+++ b/crates/router/src/routes/recon.rs@@ -102,9 +102,9 @@ pub async fn send_recon_request(user_name: UserName::new(user_from_db.name).change_context(errors::ApiErrorResponse::InternalServerError).attach_printable("Failed to form username")?,- recipient_email: UserEmail::from_pii_email(user_from_db.email.clone())+ recipient_email: UserEmail::new(Secret::new("[email protected]".to_string())).change_context(errors::ApiErrorResponse::InternalServerError)- .attach_printable("Failed to convert to UserEmail from pii::Email")?,+ .attach_printable("Failed to convert recipient's email to UserEmail")?,settings: state.conf.clone(),subject: format!("Dashboard Pro Feature Request by {}",@@ -187,7 +187,7 @@ pub async fn recon_merchant_account_update(let email_contents = email_types::ReconActivation {recipient_email: UserEmail::from_pii_email(user_email.clone()).change_context(errors::ApiErrorResponse::InternalServerError)- .attach_printable("Failed to convert to UserEmail from pii::Email")?,+ .attach_printable("Failed to convert recipient's email to UserEmail from pii::Email")?,user_name: UserName::new(Secret::new("HyperSwitch User".to_string())).change_context(errors::ApiErrorResponse::InternalServerError).attach_printable("Failed to form username")?,diff --git a/crates/router/src/services/email/types.rs b/crates/router/src/services/email/types.rsindex 0ef15eaa40..d5aa992613 100644--- a/crates/router/src/services/email/types.rs+++ b/crates/router/src/services/email/types.rs@@ -74,19 +74,17 @@ pub mod html {merchant_id,user_name,user_email,- } => {- format!(- "Dear Hyperswitch Support Team,-- Dashboard Pro Feature Request,- Feature name : {feature_name}- Merchant ID : {merchant_id}- Merchant Name : {user_name}- Email : {user_email}-- (note: This is an auto generated email. use merchant email for any further comunications)",- )- }+ } => format!(+ "Dear Hyperswitch Support Team,++Dashboard Pro Feature Request,+Feature name : {feature_name}+Merchant ID : {merchant_id}+Merchant Name : {user_name}+Email : {user_email}++(note: This is an auto generated email. Use merchant email for any further communications)",+ ),}}}