mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat(connector): [Gocardless] add boilerplate code (#2179)
This commit is contained in:
@ -32,6 +32,7 @@ pub struct ConnectorAuthentication {
|
||||
pub forte: Option<MultiAuthKey>,
|
||||
pub globalpay: Option<BodyKey>,
|
||||
pub globepay: Option<BodyKey>,
|
||||
pub gocardless: Option<HeaderKey>,
|
||||
pub helcim: Option<HeaderKey>,
|
||||
pub iatapay: Option<SignatureKey>,
|
||||
pub mollie: Option<BodyKey>,
|
||||
@ -76,7 +77,7 @@ impl ConnectorAuthentication {
|
||||
/// Will panic if `CONNECTOR_AUTH_FILE_PATH` env is not set
|
||||
#[allow(clippy::expect_used)]
|
||||
pub fn new() -> Self {
|
||||
// Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_auth.toml"`
|
||||
// Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_sample_auth.toml"`
|
||||
// before running tests in shell
|
||||
let path = env::var("CONNECTOR_AUTH_FILE_PATH")
|
||||
.expect("Connector authentication file path not set");
|
||||
@ -108,7 +109,7 @@ impl ConnectorAuthenticationMap {
|
||||
/// Will panic if `CONNECTOR_AUTH_FILE_PATH` env is not set
|
||||
#[allow(clippy::expect_used)]
|
||||
pub fn new() -> Self {
|
||||
// Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_auth.toml"`
|
||||
// Do `export CONNECTOR_AUTH_FILE_PATH="/hyperswitch/crates/router/tests/connectors/sample_sample_auth.toml"`
|
||||
// before running tests in shell
|
||||
let path = env::var("CONNECTOR_AUTH_FILE_PATH")
|
||||
.expect("connector authentication file path not set");
|
||||
|
||||
Reference in New Issue
Block a user