@@ -29,7 +29,7 @@ class Configuration
29
29
private $ _acceptGzipEncoding = true ;
30
30
31
31
/**
32
- * PaymentRails API version to use
32
+ * Trolley API version to use
33
33
* @access public
34
34
*/
35
35
const API_VERSION = 1 ;
@@ -85,7 +85,7 @@ public static function privateKey($value=null)
85
85
* Sets or gets the read timeout to use for making requests.
86
86
*
87
87
* @param integer $value If provided, sets the read timeout
88
- * @return integer The read timeout used for connecting to PaymentRails
88
+ * @return integer The read timeout used for connecting to Trolley
89
89
*/
90
90
public static function timeout ($ value =null )
91
91
{
@@ -101,7 +101,7 @@ public static function timeout($value=null)
101
101
* CURLOPT_SSLVERSION values.
102
102
*
103
103
* @param integer $value If provided, sets the SSL version
104
- * @return integer The SSL version used for connecting to PaymentRails
104
+ * @return integer The SSL version used for connecting to Trolley
105
105
*/
106
106
public static function sslVersion ($ value =null )
107
107
{
@@ -112,10 +112,10 @@ public static function sslVersion($value=null)
112
112
}
113
113
114
114
/**
115
- * Sets or gets the proxy host to use for connecting to PaymentRails
115
+ * Sets or gets the proxy host to use for connecting to Trolley
116
116
*
117
117
* @param string $value If provided, sets the proxy host
118
- * @return string The proxy host used for connecting to PaymentRails
118
+ * @return string The proxy host used for connecting to Trolley
119
119
*/
120
120
public static function proxyHost ($ value = null )
121
121
{
@@ -126,10 +126,10 @@ public static function proxyHost($value = null)
126
126
}
127
127
128
128
/**
129
- * Sets or gets the port of the proxy to use for connecting to PaymentRails
129
+ * Sets or gets the port of the proxy to use for connecting to Trolley
130
130
*
131
131
* @param string $value If provided, sets the port of the proxy
132
- * @return string The port of the proxy used for connecting to PaymentRails
132
+ * @return string The port of the proxy used for connecting to Trolley
133
133
*/
134
134
public static function proxyPort ($ value = null )
135
135
{
@@ -140,11 +140,11 @@ public static function proxyPort($value = null)
140
140
}
141
141
142
142
/**
143
- * Sets or gets the proxy type to use for connecting to PaymentRails . This value
143
+ * Sets or gets the proxy type to use for connecting to Trolley . This value
144
144
* can be any of the CURLOPT_PROXYTYPE options in PHP cURL.
145
145
*
146
146
* @param string $value If provided, sets the proxy type
147
- * @return string The proxy type used for connecting to PaymentRails
147
+ * @return string The proxy type used for connecting to Trolley
148
148
*/
149
149
public static function proxyType ($ value = null )
150
150
{
@@ -391,7 +391,7 @@ public function isClientCredentials()
391
391
return !empty ($ this ->_clientId );
392
392
}
393
393
/**
394
- * returns the base paymentrails gateway URL based on config values
394
+ * returns the base Trolley gateway URL based on config values
395
395
*
396
396
* @access public
397
397
* @param none
@@ -440,20 +440,20 @@ public function serverName()
440
440
{
441
441
switch ($ this ->_environment ) {
442
442
case 'production ' :
443
- $ serverName = 'https://api.paymentrails .com ' ;
443
+ $ serverName = 'https://api.trolley .com ' ;
444
444
break ;
445
445
case 'development ' :
446
446
case 'qa ' :
447
447
$ serverName = 'https://api.railz.io ' ;
448
448
break ;
449
449
case 'sandbox ' :
450
- $ serverName = 'https://api.sandbox.paymentrails .com ' ;
450
+ $ serverName = 'https://api.sandbox.trolley .com ' ;
451
451
break ;
452
452
case 'integration ' :
453
453
$ serverName = 'http://api.local.dev:3000 ' ;
454
454
break ;
455
455
default :
456
- $ serverName = 'https://api.paymentrails .com ' ;
456
+ $ serverName = 'https://api.trolley .com ' ;
457
457
break ;
458
458
}
459
459
return $ serverName ;
@@ -496,7 +496,7 @@ public function sslOn()
496
496
*/
497
497
public function logMessage ($ message )
498
498
{
499
- error_log ('[PaymentRails ] ' . $ message );
499
+ error_log ('[Trolley ] ' . $ message );
500
500
}
501
501
}
502
502
0 commit comments