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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
import State from "../../../utils/State";
let globalState;
describe("In Memory Cache configs", () => {
before("seed global state", () => {
cy.task("getGlobalState").then((state) => {
globalState = new State(state);
});
});
after("flush global state", () => {
cy.task("setGlobalState", globalState.data);
});
context("Config flows", () => {
const key = "test-key";
const value = "test value";
const newValue = "new test value";
it("Create Configs", () => {
cy.setConfigs(globalState, key, value, "CREATE");
cy.setConfigs(globalState, key, value, "FETCH");
});
it("Update Configs", () => {
cy.setConfigs(globalState, key, newValue, "UPDATE");
cy.setConfigs(globalState, key, newValue, "FETCH");
});
it("delete configs", () => {
cy.setConfigs(globalState, key, newValue, "DELETE");
});
});
});