File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ export class Configuration {
4040 */
4141 constructor ( config ?: ConfigurationParams ) {
4242 this . apiKey = ( config && config . key ) || Configuration . apiKeyDefault ;
43- this . apiSecret = ( config && config . secret ) || Configuration . apiSecretDefault ;
43+ this . apiSecret =
44+ ( config && config . secret ) || Configuration . apiSecretDefault ;
4445 if ( config && config . environment ) {
4546 this . apiBase = Configuration . environmentToUrl ( config . environment ) ;
4647 } else {
@@ -93,17 +94,14 @@ export class Configuration {
9394
9495 /**
9596 * Private method that converts an environment to a specific URL
96- * @param environment "production" | "sandbox" | "development"
97+ * @param environment "production" | "sandbox"
9798 * @hidden
9899 */
99100 private static environmentToUrl ( environment : string ) {
100101 switch ( environment ) {
101102 case "integration" :
102103 // tslint:disable-next-line:no-http-string
103104 return "http://api.local.dev:3000" ;
104- case "development" :
105- // tslint:disable-next-line:no-http-string
106- return "https://api.railz.io" ;
107105 case "sandbox" :
108106 return "https://api.sandbox.paymentrails.com" ;
109107 case "production" :
You can’t perform that action at this time.
0 commit comments