Skip to content
This repository was archived by the owner on Mar 7, 2024. It is now read-only.

Commit 3a5dcc1

Browse files
author
aarongerig
committed
refactor: w-vision > instride 🔄
1 parent 6134f51 commit 3a5dcc1

24 files changed

+103
-81
lines changed

Diff for: ‎LICENSE

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (C) 2017 w-vision | Woche-Pass AG
3+
Copyright (C) 2024 instride AG
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1818
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
21+
SOFTWARE.

Diff for: ‎README.md

+11-10
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,26 @@
22

33
**Datatrans Gateway for the Omnipay PHP payment processing library.**
44

5-
[![Build Status](https://api.travis-ci.org/w-vision/omnipay-datatrans.png)](https://travis-ci.org/w-vision/omnipay-datatrans)
6-
[![Code Coverage](https://scrutinizer-ci.com/g/w-vision/omnipay-datatrans/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/w-vision/omnipay-datatrans/?branch=master)
7-
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/w-vision/omnipay-datatrans/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/w-vision/omnipay-datatrans/?branch=master)
8-
[![Latest Stable Version](https://poser.pugx.org/w-vision/omnipay-datatrans/v/stable)](https://packagist.org/packages/w-vision/omnipay-datatrans)
9-
[![Latest Unstable Version](https://poser.pugx.org/w-vision/omnipay-datatrans/v/unstable)](https://packagist.org/packages/w-vision/omnipay-datatrans)
10-
[![License](https://poser.pugx.org/w-vision/omnipay-datatrans/license)](https://packagist.org/packages/w-vision/omnipay-datatrans)
11-
12-
[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment
5+
[![Build Status](https://api.travis-ci.org/instride/omnipay-datatrans.png)](https://travis-ci.org/instride/omnipay-datatrans)
6+
[![Code Coverage](https://scrutinizer-ci.com/g/instride/omnipay-datatrans/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/instride/omnipay-datatrans/?branch=main)
7+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/instride/omnipay-datatrans/badges/quality-score.png?b=main)](https://scrutinizer-ci.com/g/instride/omnipay-datatrans/?branch=main)
8+
[![Latest Stable Version](https://poser.pugx.org/instride/omnipay-datatrans/v/stable)](https://packagist.org/packages/instride/omnipay-datatrans)
9+
[![Latest Unstable Version](https://poser.pugx.org/instride/omnipay-datatrans/v/unstable)](https://packagist.org/packages/instride/omnipay-datatrans)
10+
[![License](https://poser.pugx.org/instride/omnipay-datatrans/license)](https://packagist.org/packages/instride/omnipay-datatrans)
11+
12+
[Omnipay](https://github.com/thephpleague/omnipay) is a framework-agnostic, multi-gateway payment
1313
processing library for PHP 5.3+.
1414

15-
This Gateway implements offsite payments via Datatrans. Purchase and Authorization are available, capturing an authorized payment has to be performed via Datatrans backend (not currently implemented for this Gateway).
15+
This Gateway implements offsite payments via Datatrans. Purchase and Authorization are available,
16+
capturing an authorized payment has to be performed via Datatrans backend (not currently implemented for this Gateway).
1617

1718
## Installation
1819

1920
Omnipay can be installed using [Composer](https://getcomposer.org/). [Installation instructions](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).
2021

2122
Run the following command to install omnipay and the datatrans gateway:
2223

23-
composer require w-vision/omnipay-datatrans:^1.0.0
24+
composer require instride/omnipay-datatrans:^1.0.0
2425

2526
## Basic Usage
2627

Diff for: ‎composer.json

+7-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "w-vision/omnipay-datatrans",
2+
"name": "instride/omnipay-datatrans",
33
"type": "library",
44
"description": "Datatrans Gateway for the Omnipay payment processing library",
55
"keywords": [
@@ -10,12 +10,14 @@
1010
"pay",
1111
"payment"
1212
],
13-
"homepage": "https://github.com/w-vision/omnipay-datatrans",
13+
"homepage": "https://github.com/instride-ch/omnipay-datatrans",
1414
"license": "MIT",
1515
"authors": [
1616
{
17-
"name": "Dominik Pfaffenbauer",
18-
"email": "[email protected]"
17+
"name": "instride AG",
18+
"email": "[email protected]",
19+
"homepage": "https://instride.ch",
20+
"role": "Digital Agency"
1921
}
2022
],
2123
"autoload": {
@@ -31,5 +33,5 @@
3133
"branch-alias": {
3234
"dev-master": "1.0.x-dev"
3335
}
34-
}
36+
}
3537
}

Diff for: ‎src/AbstractDatatransGateway.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans;

Diff for: ‎src/Gateway.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans;

Diff for: ‎src/Message/AbstractRedirectRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/AbstractRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/AbstractResponse.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/CompletePurchaseRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/CompletePurchaseResponse.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/PurchaseRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/PurchaseResponse.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/TokenizeRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/TokenizeResponse.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/XmlAuthorizationRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/XmlAuthorizationResponse.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/XmlCancelRequest.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;

Diff for: ‎src/Message/XmlRequest.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
<?php
2+
23
/**
3-
* w-vision
4+
* instride AG
45
*
56
* LICENSE
67
*
78
* This source file is subject to the MIT License
89
* For the full copyright and license information, please view the LICENSE.md
910
* file that are distributed with this source code.
1011
*
11-
* @copyright Copyright (c) 2016 Woche-Pass AG (http://www.w-vision.ch)
12-
* @license MIT License
12+
* @copyright 2024 instride AG (https://instride.ch)
13+
* @license MIT License
1314
*/
1415

1516
namespace Omnipay\Datatrans\Message;
@@ -159,7 +160,7 @@ public function sendData($data)
159160
// Empty response body should be parsed also as and empty array
160161
$body = $httpResponse->getBody(true);
161162
$xmlResponse = !empty($body) ? $httpResponse->xml() : '';
162-
163+
163164
if ($xmlResponse instanceof \SimpleXMLElement) {
164165
$response = $xmlResponse->body->transaction;
165166

0 commit comments

Comments
 (0)