var gw = structNew();
variables.svc = createObject("component", "cfpayment.api.core");
gw.path = "authorizenet.authorizenet";
// Request a test account here: http://developer.authorize.net/testaccount/
gw.MerchantAccount = "xxx"; // Insert your developer or production merchant account number here.
gw.Username = "yyy"; // Insert your developer or production username here.
gw.TestMode = true; // defaults to true
// create gw and get reference
variables.svc.init(gw);
variables.gw = variables.svc.getGateway();
```