Skip to content

Commit 5bbaef5

Browse files
author
Aman Aalam
authored
Merge pull request #29 from PaymentRails/analytics-and-rebranding
feat:Analytics and rebranding
2 parents cf6eb5c + 768fd21 commit 5bbaef5

27 files changed

Lines changed: 76 additions & 66 deletions

ACKNOWLEDGEMENTS.md

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 6 additions & 5 deletions
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.
@@ -83,5 +83,6 @@ All URIs are available at http://docs.paymentrails.com/
8383
### Running the tests from SDK
8484
To run the tests in the terminal, use the PHPUnit test suite from within the `tests` directory, like the following:
8585
```
86+
$ cd tests
8687
$ ../vendor/bin/phpunit integration/RecipientTest.php
8788
```

composer.json

Lines changed: 5 additions & 4 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 3 additions & 3 deletions
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

0 commit comments

Comments
 (0)