// $CAD credentials (provided by support@stripe.com)
local.gw = {"path": "stripe.stripe", "GatewayID": 2, "TestMode": true};
local.gw.TestSecretKey = credentials.cad.TestSecretKey;
local.gw.TestPublishableKey = credentials.cad.TestPublishableKey;
variables.svc = createObject("component", "cfpayment.api.core").init(local.gw);
variables.cad = variables.svc.getGateway();
variables.cad.currency = "cad"; // ONLY FOR UNIT TEST
variables.cad.country = "CA"; // ONLY FOR UNIT TEST
// $USD credentials - from PHP unit tests on github
local.gw = {"path": "stripe.stripe", "GatewayID": 2, "TestMode": true};
local.gw.TestSecretKey = credentials.usd.TestSecretKey;
local.gw.TestPublishableKey = credentials.usd.TestPublishableKey;
variables.svc = createObject("component", "cfpayment.api.core").init(local.gw);
variables.usd = variables.svc.getGateway();
variables.usd.currency = "usd"; // ONLY FOR UNIT TEST
variables.usd.country = "US"; // ONLY FOR UNIT TEST
// create default
variables.gw = variables.usd;
// for dataprovider testing
variables.gateways = [cad, usd];