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

561 B
Raw Blame
class State {
  data = {};
  constructor(data) {
    this.data = data;
    this.data["connectorId"] = Cypress.env("CONNECTOR");
    this.data["baseUrl"] = Cypress.env("BASEURL");
    this.data["adminApiKey"] = Cypress.env("ADMINAPIKEY");
    this.data["email"] = Cypress.env("HS_EMAIL");
    this.data["password"] = Cypress.env("HS_PASSWORD");
    this.data["connectorAuthFilePath"] = Cypress.env(
      "CONNECTOR_AUTH_FILE_PATH"
    );
  }

  set(key, val) {
    this.data[key] = val;
  }

  get(key) {
    return this.data[key];
  }
}

export default State;