mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
chore(merchant_account): remove api_key field (#713)
This commit is contained in:
@ -1,9 +1,5 @@
|
||||
use masking::Secret;
|
||||
use router::types::{
|
||||
self,
|
||||
api::{self},
|
||||
storage::enums,
|
||||
};
|
||||
use router::types::{self, api, storage::enums};
|
||||
use serde_json::json;
|
||||
|
||||
use crate::{
|
||||
|
||||
@ -276,7 +276,9 @@ async fn payments_create_core() {
|
||||
|
||||
let state = routes::AppState::with_storage(conf, StorageImpl::PostgresqlTest).await;
|
||||
|
||||
let merchant_account = services::authenticate_by_api_key(&*state.store, "MySecretApiKey")
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@ -426,7 +428,9 @@ async fn payments_create_core_adyen_no_redirect() {
|
||||
let merchant_id = "arunraj".to_string();
|
||||
let payment_id = "pay_mbabizu24mvu3mela5njyhpit10".to_string();
|
||||
|
||||
let merchant_account = services::authenticate_by_api_key(&*state.store, "321")
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
@ -10,7 +10,6 @@ use router::{
|
||||
};
|
||||
use time::macros::datetime;
|
||||
use uuid::Uuid;
|
||||
// use router;
|
||||
|
||||
#[test]
|
||||
fn connector_list() {
|
||||
@ -37,7 +36,9 @@ async fn payments_create_core() {
|
||||
|
||||
let state = routes::AppState::with_storage(conf, StorageImpl::PostgresqlTest).await;
|
||||
|
||||
let merchant_account = services::authenticate_by_api_key(&*state.store, "MySecretApiKey")
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
@ -192,7 +193,9 @@ async fn payments_create_core_adyen_no_redirect() {
|
||||
let merchant_id = "arunraj".to_string();
|
||||
let payment_id = "pay_mbabizu24mvu3mela5njyhpit10".to_string();
|
||||
|
||||
let merchant_account = services::authenticate_by_api_key(&*state.store, "321")
|
||||
let merchant_account = state
|
||||
.store
|
||||
.find_merchant_account_by_merchant_id("juspay_merchant")
|
||||
.await
|
||||
.unwrap();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user