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(euclid_wasm): connector config wasm metadata update (#4460)

Jeeva Ramachandran28df646830f5
diff --git a/crates/connector_configs/src/common_config.rs b/crates/connector_configs/src/common_config.rs
index 495c0e5b6c..b11a74a3ca 100644
--- a/crates/connector_configs/src/common_config.rs
+++ b/crates/connector_configs/src/common_config.rs
@@ -87,6 +87,9 @@ pub struct ApiModelMetaData {
pub merchant_name: Option<String>,
pub acquirer_bin: Option<String>,
pub acquirer_merchant_id: Option<String>,
+ pub three_ds_requestor_name: Option<String>,
+ pub three_ds_requestor_id: Option<String>,
+ pub pull_mechanism_for_external_3ds_enabled: Option<bool>,
}
#[serde_with::skip_serializing_none]
@@ -185,4 +188,7 @@ pub struct DashboardMetaData {
pub merchant_name: Option<String>,
pub acquirer_bin: Option<String>,
pub acquirer_merchant_id: Option<String>,
+ pub three_ds_requestor_name: Option<String>,
+ pub three_ds_requestor_id: Option<String>,
+ pub pull_mechanism_for_external_3ds_enabled: Option<bool>,
}
diff --git a/crates/connector_configs/src/response_modifier.rs b/crates/connector_configs/src/response_modifier.rs
index 6fbf85f4fc..8f7da58c4d 100644
--- a/crates/connector_configs/src/response_modifier.rs
+++ b/crates/connector_configs/src/response_modifier.rs
@@ -317,6 +317,10 @@ impl From<ApiModelMetaData> for DashboardMetaData {
merchant_name: api_model.merchant_name,
acquirer_bin: api_model.acquirer_bin,
acquirer_merchant_id: api_model.acquirer_merchant_id,
+ three_ds_requestor_name: api_model.three_ds_requestor_name,
+ three_ds_requestor_id: api_model.three_ds_requestor_id,
+ pull_mechanism_for_external_3ds_enabled: api_model
+ .pull_mechanism_for_external_3ds_enabled,
}
}
}
diff --git a/crates/connector_configs/src/transformer.rs b/crates/connector_configs/src/transformer.rs
index 09a28ac2b0..203e48ac50 100644
--- a/crates/connector_configs/src/transformer.rs
+++ b/crates/connector_configs/src/transformer.rs
@@ -114,8 +114,8 @@ impl DashboardRequestPayload {
maximum_amount: Some(68607706),
recurring_enabled: true,
installment_payment_enabled: false,
- accepted_currencies: None,
- accepted_countries: None,
+ accepted_currencies: method.accepted_currencies,
+ accepted_countries: method.accepted_countries,
payment_experience: None,
};
card_payment_method_types.push(data)
@@ -192,6 +192,9 @@ impl DashboardRequestPayload {
merchant_name: None,
acquirer_bin: None,
acquirer_merchant_id: None,
+ three_ds_requestor_name: None,
+ three_ds_requestor_id: None,
+ pull_mechanism_for_external_3ds_enabled: None,
};
let meta_data = match request.metadata {
Some(data) => data,
@@ -211,6 +214,10 @@ impl DashboardRequestPayload {
let merchant_name = meta_data.merchant_name;
let acquirer_bin = meta_data.acquirer_bin;
let acquirer_merchant_id = meta_data.acquirer_merchant_id;
+ let three_ds_requestor_name = meta_data.three_ds_requestor_name;
+ let three_ds_requestor_id = meta_data.three_ds_requestor_id;
+ let pull_mechanism_for_external_3ds_enabled =
+ meta_data.pull_mechanism_for_external_3ds_enabled;
Some(ApiModelMetaData {
google_pay,
@@ -227,6 +234,9 @@ impl DashboardRequestPayload {
merchant_name,
acquirer_bin,
acquirer_merchant_id,
+ three_ds_requestor_name,
+ three_ds_requestor_id,
+ pull_mechanism_for_external_3ds_enabled,
})
}