mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 04:04:55 +08:00
feat: encryption service integration to support batch encryption and decryption (#5164)
Co-authored-by: dracarys18 <karthikey.hegde@juspay.in> Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -288,10 +288,11 @@ async fn payments_create_core() {
|
||||
let state = Arc::new(app_state)
|
||||
.get_session_state("public", || {})
|
||||
.unwrap();
|
||||
|
||||
let key_manager_state = &(&state).into();
|
||||
let key_store = state
|
||||
.store
|
||||
.get_merchant_key_store_by_merchant_id(
|
||||
key_manager_state,
|
||||
"juspay_merchant",
|
||||
&state.store.get_master_key().to_vec().into(),
|
||||
)
|
||||
@ -300,7 +301,7 @@ async fn payments_create_core() {
|
||||
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant", &key_store)
|
||||
.find_merchant_account_by_merchant_id(key_manager_state, "juspay_merchant", &key_store)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@ -476,10 +477,11 @@ async fn payments_create_core_adyen_no_redirect() {
|
||||
let customer_id = format!("cust_{}", Uuid::new_v4());
|
||||
let merchant_id = "arunraj".to_string();
|
||||
let payment_id = "pay_mbabizu24mvu3mela5njyhpit10".to_string();
|
||||
|
||||
let key_manager_state = &(&state).into();
|
||||
let key_store = state
|
||||
.store
|
||||
.get_merchant_key_store_by_merchant_id(
|
||||
key_manager_state,
|
||||
"juspay_merchant",
|
||||
&state.store.get_master_key().to_vec().into(),
|
||||
)
|
||||
@ -488,7 +490,7 @@ async fn payments_create_core_adyen_no_redirect() {
|
||||
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant", &key_store)
|
||||
.find_merchant_account_by_merchant_id(key_manager_state, "juspay_merchant", &key_store)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
@ -48,10 +48,11 @@ async fn payments_create_core() {
|
||||
let state = Arc::new(app_state)
|
||||
.get_session_state("public", || {})
|
||||
.unwrap();
|
||||
|
||||
let key_manager_state = &(&state).into();
|
||||
let key_store = state
|
||||
.store
|
||||
.get_merchant_key_store_by_merchant_id(
|
||||
key_manager_state,
|
||||
"juspay_merchant",
|
||||
&state.store.get_master_key().to_vec().into(),
|
||||
)
|
||||
@ -60,7 +61,7 @@ async fn payments_create_core() {
|
||||
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant", &key_store)
|
||||
.find_merchant_account_by_merchant_id(key_manager_state, "juspay_merchant", &key_store)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@ -243,10 +244,11 @@ async fn payments_create_core_adyen_no_redirect() {
|
||||
let customer_id = format!("cust_{}", Uuid::new_v4());
|
||||
let merchant_id = "arunraj".to_string();
|
||||
let payment_id = "pay_mbabizu24mvu3mela5njyhpit10".to_string();
|
||||
|
||||
let key_manager_state = &(&state).into();
|
||||
let key_store = state
|
||||
.store
|
||||
.get_merchant_key_store_by_merchant_id(
|
||||
key_manager_state,
|
||||
"juspay_merchant",
|
||||
&state.store.get_master_key().to_vec().into(),
|
||||
)
|
||||
@ -255,7 +257,7 @@ async fn payments_create_core_adyen_no_redirect() {
|
||||
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant", &key_store)
|
||||
.find_merchant_account_by_merchant_id(key_manager_state, "juspay_merchant", &key_store)
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user