Skip to content

Commit ae631aa

Browse files
committed
Replaced instances of Payment Rails with Trolley wherever possible
1 parent d19528f commit ae631aa

26 files changed

+67
-66
lines changed

ACKNOWLEDGEMENTS.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Acknowledgements
22
----------------
33

4-
The PaymentRails SDK uses code from the following libraries:
4+
The Trolley SDK uses code from the following libraries:
55

66
* [phpunit](https://github.com/sebastianbergmann/phpunit), BSD-3-Clause License
77
* [Braintree](https://github.com/braintree/braintree_php), MIT License

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2017 Payment Rails, Inc.
1+
Copyright (c) 2017 Trolley, Inc.
22

33
Permission is hereby granted, free of charge, to any person
44
obtaining a copy of this software and associated documentation

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Payment Rails[^1] PHP Library
1+
# Trolley PHP SDK (Previously Payment Rails[^1])
22

33
[![Latest Stable Version](https://poser.pugx.org/paymentrails/php-sdk/v/stable.png)](https://packagist.org/packages/paymentrails/php-sdk)
44

5-
The Payment Rails PHP library provides integration access to the Payment Rails API.
5+
The Trolley PHP SDK provides integration access to the Trolley API.
66

7-
[^1]: [Payment Rails is now Trolley](https://www.trolley.com/payment-rails-is-now-trolley-series-a), we'll be updating our SDKs to support the new domain during the first half of 2022.
7+
[^1]: [Payment Rails is now Trolley](https://www.trolley.com/payment-rails-is-now-trolley-series-a). We're in the process of updating our SDKs to support the new domain. In this transition phase, you might still see "PaymentRails" at some places.
88

99
## Requirements
1010

@@ -19,7 +19,7 @@ openssl
1919

2020
## Installation & Usage
2121

22-
### Library
22+
### SDK
2323

2424
```bash
2525
git clone https://github.com/PaymentRails/php-sdk.git
@@ -73,7 +73,7 @@ try {
7373

7474
## Documentation for API Endpoints
7575

76-
All URIs are available at http://docs.paymentrails.com/
76+
All URIs are available at https://docs.trolley.com/
7777

7878
## Running SDK from Source
7979
1. Clone this repo.

composer.json

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "paymentrails/php-sdk",
33
"type": "library",
4-
"description": "Payment Rails PHP Client Library",
4+
"description": "Trolley PHP SDK",
55
"homepage": "https://github.com/PaymentRails/php-sdk",
66
"keywords": [
7-
"PaymentRails"
7+
"PaymentRails",
8+
"Trolley"
89
],
910
"license": "MIT",
1011
"authors": [
1112
{
12-
"name": "PaymentRails",
13-
"homepage": "https://www.paymentrails.com"
13+
"name": "Trolley (previously PaymentRails)",
14+
"homepage": "https://www.trolley.com"
1415
}
1516
],
1617
"require": {

lib/PaymentRails.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* PaymentRails PHP Library
4+
* Trolley (PaymentRails) PHP SDK
55
* Creates class_aliases for old class names replaced by PSR-4 Namespaces
66
*/
77

@@ -16,7 +16,7 @@ public static function requireDependencies() {
1616
$requiredExtensions = ['xmlwriter', 'openssl', 'dom', 'hash', 'curl'];
1717
foreach ($requiredExtensions AS $ext) {
1818
if (!extension_loaded($ext)) {
19-
throw new PaymentRails_Exception('The PaymentRails library requires the ' . $ext . ' extension.');
19+
throw new PaymentRails_Exception('The Trolley SDK requires the ' . $ext . ' extension.');
2020
}
2121
}
2222
}

lib/PaymentRails/Balance.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails Balance module
5+
* Trolley (PaymentRails) Balance module
66
* PHP Version 5
77
* Gets merchant balances
88
*

lib/PaymentRails/BalanceGateway.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
use InvalidArgumentException;
55

66
/**
7-
* PaymentRails Balance processor
7+
* Trolley (PaymentRails) Balance processor
88
* Gets balances
99
*
1010
* <b>== More information ==</b>
1111
*
12-
* For more detailed information on Balance, see {@link http://docs.paymentrails.com/#balances}
12+
* For more detailed information on Balance, see {@link https://docs.trolley.com/api/#balances}
1313
*
1414
* @package PaymentRails
1515
* @category Resources
@@ -33,7 +33,7 @@ public function __construct($gateway)
3333
*
3434
* If <b>query</b> is a string, the search will be a basic search.
3535
* If <b>query</b> is a hash, the search will be an advanced search.
36-
* For more detailed information and examples, see {@link http://docs.paymentrails.com/#balances}
36+
* For more detailed information and examples, see {@link https://docs.trolley.com/api/#balances}
3737
*
3838
* @param mixed $query search query
3939
* @param array $options options such as page number

lib/PaymentRails/Base.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails PHP Library.
5+
* Trolley (PaymentRails) PHP SDK.
66
*
7-
* PaymentRails base class and initialization
7+
* Trolley base class and initialization
88
* Provides methods to child classes. This class cannot be instantiated.
99
*
1010
* PHP version 5

lib/PaymentRails/Batch.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails Batch module
5+
* Trolley (PaymentRails) Batch module
66
* PHP Version 5
77
* Creates and manages batches of payments
88
*

lib/PaymentRails/BatchGateway.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
use InvalidArgumentException;
55

66
/**
7-
* PaymentRails Batch processor
7+
* Trolley (PaymentRails) Batch processor
88
* Creates and manages batches
99
*
1010
* <b>== More information ==</b>
1111
*
12-
* For more detailed information on Batch, see {@link http://docs.paymentrails.com/#create-a-batch}
12+
* For more detailed information on Batch, see {@link https://docs.trolley.com/api/#create-a-batch}
1313
*
1414
* @package PaymentRails
1515
* @category Resources
@@ -33,7 +33,7 @@ public function __construct($gateway)
3333
*
3434
* If <b>query</b> is a string, the search will be a basic search.
3535
* If <b>query</b> is a hash, the search will be an advanced search.
36-
* For more detailed information and examples, see {@link http://docs.paymentrails.com/#create-a-batch}
36+
* For more detailed information and examples, see {@link https://docs.trolley.com/api/#create-a-batch}
3737
*
3838
* @param mixed $query search query
3939
* @param array $options options such as page number

lib/PaymentRails/BatchSummary.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails BatchSummary Data
5+
* Trolley (PaymentRails) BatchSummary Data
66
* PHP Version 5
77
* Creates and manages batches of payments
88
*

lib/PaymentRails/Configuration.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class Configuration
2929
private $_acceptGzipEncoding = true;
3030

3131
/**
32-
* PaymentRails API version to use
32+
* Trolley API version to use
3333
* @access public
3434
*/
3535
const API_VERSION = 1;
@@ -85,7 +85,7 @@ public static function privateKey($value=null)
8585
* Sets or gets the read timeout to use for making requests.
8686
*
8787
* @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
8989
*/
9090
public static function timeout($value=null)
9191
{
@@ -101,7 +101,7 @@ public static function timeout($value=null)
101101
* CURLOPT_SSLVERSION values.
102102
*
103103
* @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
105105
*/
106106
public static function sslVersion($value=null)
107107
{
@@ -112,10 +112,10 @@ public static function sslVersion($value=null)
112112
}
113113

114114
/**
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
116116
*
117117
* @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
119119
*/
120120
public static function proxyHost($value = null)
121121
{
@@ -126,10 +126,10 @@ public static function proxyHost($value = null)
126126
}
127127

128128
/**
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
130130
*
131131
* @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
133133
*/
134134
public static function proxyPort($value = null)
135135
{
@@ -140,11 +140,11 @@ public static function proxyPort($value = null)
140140
}
141141

142142
/**
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
144144
* can be any of the CURLOPT_PROXYTYPE options in PHP cURL.
145145
*
146146
* @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
148148
*/
149149
public static function proxyType($value = null)
150150
{
@@ -391,7 +391,7 @@ public function isClientCredentials()
391391
return !empty($this->_clientId);
392392
}
393393
/**
394-
* returns the base paymentrails gateway URL based on config values
394+
* returns the base Trolley gateway URL based on config values
395395
*
396396
* @access public
397397
* @param none
@@ -440,20 +440,20 @@ public function serverName()
440440
{
441441
switch($this->_environment) {
442442
case 'production':
443-
$serverName = 'https://api.paymentrails.com';
443+
$serverName = 'https://api.trolley.com';
444444
break;
445445
case 'development':
446446
case 'qa':
447447
$serverName = 'https://api.railz.io';
448448
break;
449449
case 'sandbox':
450-
$serverName = 'https://api.sandbox.paymentrails.com';
450+
$serverName = 'https://api.sandbox.trolley.com';
451451
break;
452452
case 'integration':
453453
$serverName = 'http://api.local.dev:3000';
454454
break;
455455
default:
456-
$serverName = 'https://api.paymentrails.com';
456+
$serverName = 'https://api.trolley.com';
457457
break;
458458
}
459459
return $serverName;
@@ -496,7 +496,7 @@ public function sslOn()
496496
*/
497497
public function logMessage($message)
498498
{
499-
error_log('[PaymentRails] ' . $message);
499+
error_log('[Trolley] ' . $message);
500500
}
501501
}
502502

lib/PaymentRails/Exception.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace PaymentRails;
44

55
/**
6-
* super class for all PaymentRails exceptions
6+
* super class for all Trolley (PaymentRails) exceptions
77
*
88
* @package PaymentRails
99
* @subpackage Exception

lib/PaymentRails/Gateway.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails gateway module
5+
* Trolley (PaymentRails) gateway module
66
*
77
* @package PaymentRails
88
* @category Resources

lib/PaymentRails/Http.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
use finfo;
55

66
/**
7-
* PaymentRails HTTP Client
7+
* Trolley (PaymentRails) HTTP Client
88
* processes Http requests using curl
99
*/
1010
class Http

lib/PaymentRails/OfflinePayment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails Payment Module
5+
* Trolley (PaymentRails) Payment Module
66
* PHP Version 5
77
* Creates and manages Offline Payments
88
*

lib/PaymentRails/OfflinePaymentGateway.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
use InvalidArgumentException;
55

66
/**
7-
* PaymentRails Offline Payment processor
7+
* Trolley (PaymentRails) Offline Payment processor
88
* Creates and manages transactions
99
*
1010
*
1111
* <b>== More information ==</b>
1212
*
13-
* For more detailed information on Offline Payments, see {@link http://docs.paymentrails.com/#create-an-offline-payment}
13+
* For more detailed information on Offline Payments, see {@link https://docs.trolley.com/api/#create-an-offline-payment}
1414
*
1515
* @package PaymentRails
1616
* @category Resources
@@ -35,7 +35,7 @@ public function __construct($gateway)
3535
*
3636
* If <b>query</b> is a string, the search will be a basic search.
3737
* If <b>query</b> is a hash, the search will be an advanced search.
38-
* For more detailed information and examples, see {@link http://docs.paymentrails.com/#offline-payments}
38+
* For more detailed information and examples, see {@link https://docs.trolley.com/api/#offline-payments}
3939
*
4040
* @param mixed $query search query
4141
* @param array $options options such as page number

lib/PaymentRails/Payment.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails Payment Module
5+
* Trolley (PaymentRails) Payment Module
66
* PHP Version 5
77
* Creates and manages Payments
88
*

lib/PaymentRails/PaymentGateway.php

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
use InvalidArgumentException;
55

66
/**
7-
* PaymentRails Payment processor
7+
* Trolley (PaymentRails) Payment processor
88
* Creates and manages transactions
99
*
1010
*
1111
* <b>== More information ==</b>
1212
*
13-
* For more detailed information on Payment, see {@link http://docs.paymentrails.com/#create-a-payment}
13+
* For more detailed information on Payment, see {@link https://docs.trolley.com/api/#create-a-payment}
1414
*
1515
* @package PaymentRails
1616
* @category Resources
@@ -35,7 +35,7 @@ public function __construct($gateway)
3535
*
3636
* If <b>query</b> is a string, the search will be a basic search.
3737
* If <b>query</b> is a hash, the search will be an advanced search.
38-
* For more detailed information and examples, see {@link http://docs.paymentrails.com/#recipients}
38+
* For more detailed information and examples, see {@link https://docs.trolley.com/api/#recipients}
3939
*
4040
* @param mixed $query search query
4141
* @param array $options options such as page number

lib/PaymentRails/Recipient.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
namespace PaymentRails;
33

44
/**
5-
* PaymentRails Recipient module
5+
* Trolley (PaymentRails) Recipient module
66
* PHP Version 5
7-
* Creates and manages PaymentRails Recipients
7+
* Creates and manages Trolley Recipients
88
*
99
* @package PaymentRails
1010
*

0 commit comments

Comments
 (0)