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(env): update env for network tokenization service (#8472)

Prasunna Soppa6c66c36a66b6
diff --git a/config/config.example.toml b/config/config.example.toml
index 08589cbcc6..f9b55b7329 100644
--- a/config/config.example.toml
+++ b/config/config.example.toml
@@ -1050,6 +1050,7 @@ private_key= "" # private key to decrypt response payload from to
key_id= "" # key id to encrypt data for token service
delete_token_url= "" # base url to delete token from token service
check_token_status_url= "" # base url to check token status from token service
+webhook_source_verification_key= "" # webhook source verification key to verify the webhook payload from token service
[network_tokenization_supported_connectors]
connector_list = "adyen,cybersource" # Supported connectors for network tokenization
diff --git a/config/deployments/env_specific.toml b/config/deployments/env_specific.toml
index 784f672a8a..7e33ffcf40 100644
--- a/config/deployments/env_specific.toml
+++ b/config/deployments/env_specific.toml
@@ -346,6 +346,7 @@ private_key= "" # private key to decrypt response payload from to
key_id= "" # key id to encrypt data for token service
delete_token_url= "" # base url to delete token from token service
check_token_status_url= "" # base url to check token status from token service
+webhook_source_verification_key= "" # webhook source verification key to verify the webhook payload from token service
[grpc_client.dynamic_routing_client] # Dynamic Routing Client Configuration
host = "localhost" # Client Host
diff --git a/crates/common_enums/src/enums.rs b/crates/common_enums/src/enums.rs
index d36b2d624f..6fbcc79819 100644
--- a/crates/common_enums/src/enums.rs
+++ b/crates/common_enums/src/enums.rs
@@ -8553,5 +8553,5 @@ impl RoutingApproach {
#[strum(serialize_all = "snake_case")]
#[router_derive::diesel_enum(storage_type = "text")]
pub enum CallbackMapperIdType {
- NetworkTokenRequestorRefernceID,
+ NetworkTokenRequestorReferenceID,
}
diff --git a/crates/common_types/src/callback_mapper.rs b/crates/common_types/src/callback_mapper.rs
index c7af35d1c7..142aeb4d59 100644
--- a/crates/common_types/src/callback_mapper.rs
+++ b/crates/common_types/src/callback_mapper.rs
@@ -9,11 +9,11 @@ use diesel::{AsExpression, FromSqlRow};
pub enum CallbackMapperData {
/// data variant used while processing the network token webhook
NetworkTokenWebhook {
- /// Merchant id assiociated with the network token requestor reference id
+ /// Merchant id associated with the network token requestor reference id
merchant_id: id_type::MerchantId,
- /// Payment Method id assiociated with the network token requestor reference id
+ /// Payment Method id associated with the network token requestor reference id
payment_method_id: String,
- /// Customer id assiociated with the network token requestor reference id
+ /// Customer id associated with the network token requestor reference id
customer_id: id_type::CustomerId,
},
}
diff --git a/crates/router/src/core/payments/tokenization.rs b/crates/router/src/core/payments/tokenization.rs
index ef9e8b580d..f36955fdfa 100644
--- a/crates/router/src/core/payments/tokenization.rs
+++ b/crates/router/src/core/payments/tokenization.rs
@@ -776,7 +776,7 @@ where
};
let callback_mapper = CallbackMapper::new(
network_token_requestor_ref_id,
- common_enums::CallbackMapperIdType::NetworkTokenRequestorRefernceID,
+ common_enums::CallbackMapperIdType::NetworkTokenRequestorReferenceID,
callback_mapper_data,
common_utils::date_time::now(),
common_utils::date_time::now(),