Skip to content

Commit cb8bef5

Browse files
Update guzzle
- Upgrading hamcrest/hamcrest-php (dev-master 696163a => dev-master dd03e52) - Upgrading myclabs/deep-copy (1.x-dev 202aaf6 => 1.x-dev 3a6b9a4) - Downgrading nikic/php-parser (v5.0.0alpha3 => 4.x-dev 8a21ec3) - Upgrading omnipay/common (v3.2.1 => v3.3.0) - Upgrading omnipay/sagepay (4.1.1 => 4.1.2) - Upgrading omnipay/tests (dev-master 4412f54 => dev-master d7f681b) - Upgrading phar-io/manifest (dev-master 6772927 => dev-master 54750ef) - Upgrading php-http/client-common (2.x-dev 1e19c05 => 2.x-dev d930a40) - Upgrading php-http/discovery (1.x-dev 664ded6 => 1.x-dev ed16f52) - Upgrading php-http/guzzle6-adapter (dev-master 9d1a45e => dev-master d1c6c9c) - Upgrading php-http/httplug (2.x-dev 625ad74 => 2.x-dev 8777928) - Upgrading php-http/message (1.x-dev fb1298f => 1.x-dev ba03180) - Upgrading php-http/promise (1.x-dev 44a67cb => 1.x-dev fc85b1f) - Upgrading phpunit/php-code-coverage (9.2.x-dev ca2bd87 => 9.2.x-dev 85402a8) - Upgrading phpunit/phpunit (9.6.x-dev d833627 => 9.6.x-dev f414826) - Downgrading psr/http-factory (dev-master 7037f4b => 1.1.0) - Upgrading sebastian/cli-parser (1.0.1 => 1.0.x-dev 2b56bea) - Upgrading sebastian/diff (4.0.x-dev 74be170 => 4.0.x-dev ba01945) - Upgrading sebastian/exporter (4.0.x-dev ac230ed => 4.0.x-dev 78c00df) - Upgrading sebastian/global-state (5.0.x-dev bde739e => 5.0.x-dev bca7df1) - Upgrading sebastian/resource-operations (dev-main 20bdda8 => dev-main ff553e7) - Upgrading symfony/deprecation-contracts (2.5.x-dev 80d0754 => 2.5.x-dev d36279a) - Upgrading symfony/http-foundation (5.4.x-dev 4da1713 => 5.4.x-dev 9c375b2) - Upgrading symfony/options-resolver (5.4.x-dev 4fe5cf6 => 5.4.x-dev bd1afbd) - Upgrading symfony/polyfill-mbstring (1.x-dev 42292d9 => 1.x-dev 8740a07) - Upgrading symfony/polyfill-php73 (1.x-dev fe2f306 => 1.x-dev ec444d3) - Upgrading symfony/polyfill-php80 (1.x-dev 6caa573 => 1.x-dev 77fa799) - Upgrading theseer/tokenizer (1.2.2 => 1.2.3) Writing lock file Installing dependencies from lock file Package operations: 0 installs, 11 updates, 0 removals - Upgrading php-http/discovery (1.x-dev 664ded6 => 1.x-dev ed16f52): Extracting archive - Upgrading symfony/polyfill-php80 (1.x-dev 6caa573 => 1.x-dev 77fa799): Extracting archive - Upgrading symfony/polyfill-mbstring (1.x-dev 42292d9 => 1.x-dev 8740a07): Extracting archive - Upgrading symfony/deprecation-contracts (2.5.x-dev 80d0754 => 2.5.x-dev d36279a): Extracting archive - Upgrading symfony/http-foundation (5.4.x-dev 4da1713 => 5.4.x-dev 9c375b2): Extracting archive - Upgrading php-http/message (1.x-dev fb1298f => 1.x-dev ba03180): Extracting archive - Upgrading php-http/promise (1.x-dev 44a67cb => 1.x-dev fc85b1f): Extracting archive - Upgrading php-http/httplug (2.x-dev 625ad74 => 2.x-dev 8777928): Extracting archive - Upgrading php-http/guzzle6-adapter (dev-master 9d1a45e => dev-master d1c6c9c): Extracting archive - Upgrading omnipay/common (v3.2.1 => v3.3.0): Extracting archive - Upgrading omnipay/sagepay (4.1.1 => 4.1.2): Extracting archive Package php-http/guzzle6-adapter is abandoned, you should avoid using it. Use guzzlehttp/guzzle or php-http/guzzle7-adapter instead. Package php-http/message-factory is abandoned, you should avoid using it. Use psr/http-factory instead.
1 parent 3b0f382 commit cb8bef5

File tree

99 files changed

+466
-436
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

99 files changed

+466
-436
lines changed

vendor/composer/autoload_psr4.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
'Money\\' => array($vendorDir . '/moneyphp/money/src'),
3030
'League\\ISO3166\\' => array($vendorDir . '/league/iso3166/src'),
3131
'Http\\Promise\\' => array($vendorDir . '/php-http/promise/src'),
32-
'Http\\Message\\' => array($vendorDir . '/php-http/message/src', $vendorDir . '/php-http/message-factory/src'),
32+
'Http\\Message\\' => array($vendorDir . '/php-http/message-factory/src', $vendorDir . '/php-http/message/src'),
3333
'Http\\Discovery\\' => array($vendorDir . '/php-http/discovery/src'),
3434
'Http\\Client\\' => array($vendorDir . '/php-http/httplug/src'),
3535
'Http\\Adapter\\Guzzle6\\' => array($vendorDir . '/php-http/guzzle6-adapter/src'),

vendor/composer/autoload_static.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,8 @@ class ComposerStaticInit9c661977280eba00f26021522edd8f5f
161161
),
162162
'Http\\Message\\' =>
163163
array (
164-
0 => __DIR__ . '/..' . '/php-http/message/src',
165-
1 => __DIR__ . '/..' . '/php-http/message-factory/src',
164+
0 => __DIR__ . '/..' . '/php-http/message-factory/src',
165+
1 => __DIR__ . '/..' . '/php-http/message/src',
166166
),
167167
'Http\\Discovery\\' =>
168168
array (

vendor/composer/installed.json

Lines changed: 63 additions & 67 deletions
Large diffs are not rendered by default.

vendor/composer/installed.php

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
'name' => '__root__',
44
'pretty_version' => 'dev-master',
55
'version' => 'dev-master',
6-
'reference' => '9df3abcf0ca3fe98464b5fed47d1f6b7c1351e5c',
6+
'reference' => '3b0f38223a0747760d04553696c1732d98a7c80a',
77
'type' => 'library',
88
'install_path' => __DIR__ . '/../../',
99
'aliases' => array(),
@@ -13,7 +13,7 @@
1313
'__root__' => array(
1414
'pretty_version' => 'dev-master',
1515
'version' => 'dev-master',
16-
'reference' => '9df3abcf0ca3fe98464b5fed47d1f6b7c1351e5c',
16+
'reference' => '3b0f38223a0747760d04553696c1732d98a7c80a',
1717
'type' => 'library',
1818
'install_path' => __DIR__ . '/../../',
1919
'aliases' => array(),
@@ -119,9 +119,9 @@
119119
'dev_requirement' => false,
120120
),
121121
'omnipay/common' => array(
122-
'pretty_version' => 'v3.2.1',
123-
'version' => '3.2.1.0',
124-
'reference' => '80545e9f4faab0efad36cc5f1e11a184dda22baf',
122+
'pretty_version' => 'v3.3.0',
123+
'version' => '3.3.0.0',
124+
'reference' => '2eca3823e9069e2c36b6007a090577d5584f9518',
125125
'type' => 'library',
126126
'install_path' => __DIR__ . '/../omnipay/common',
127127
'aliases' => array(),
@@ -170,9 +170,9 @@
170170
'dev_requirement' => false,
171171
),
172172
'omnipay/sagepay' => array(
173-
'pretty_version' => '4.1.1',
174-
'version' => '4.1.1.0',
175-
'reference' => '1b079bdc6b18332dd3d019d46d08feea80fbb133',
173+
'pretty_version' => '4.1.2',
174+
'version' => '4.1.2.0',
175+
'reference' => '2a2dd855aecff2c200040702b480fbd3a86d93e6',
176176
'type' => 'library',
177177
'install_path' => __DIR__ . '/../omnipay/sagepay',
178178
'aliases' => array(),
@@ -214,21 +214,21 @@
214214
'php-http/async-client-implementation' => array(
215215
'dev_requirement' => false,
216216
'provided' => array(
217-
0 => '*',
218-
1 => '1.0',
217+
0 => '1.0',
218+
1 => '*',
219219
),
220220
),
221221
'php-http/client-implementation' => array(
222222
'dev_requirement' => false,
223223
'provided' => array(
224-
0 => '*',
225-
1 => '1.0',
224+
0 => '1.0',
225+
1 => '*',
226226
),
227227
),
228228
'php-http/discovery' => array(
229229
'pretty_version' => '1.x-dev',
230230
'version' => '1.9999999.9999999.9999999-dev',
231-
'reference' => '664ded67cc61abcaa5b77d27581777483d1c843d',
231+
'reference' => 'ed16f5209c597c564da6efa54f771e8bda743f07',
232232
'type' => 'composer-plugin',
233233
'install_path' => __DIR__ . '/../php-http/discovery',
234234
'aliases' => array(),
@@ -237,7 +237,7 @@
237237
'php-http/guzzle6-adapter' => array(
238238
'pretty_version' => 'dev-master',
239239
'version' => 'dev-master',
240-
'reference' => '9d1a45eb1c59f12574552e81fb295e9e53430a56',
240+
'reference' => 'd1c6c9c0d73c6b910a2efa4cc72da249d9dadaeb',
241241
'type' => 'library',
242242
'install_path' => __DIR__ . '/../php-http/guzzle6-adapter',
243243
'aliases' => array(
@@ -248,7 +248,7 @@
248248
'php-http/httplug' => array(
249249
'pretty_version' => '2.x-dev',
250250
'version' => '2.9999999.9999999.9999999-dev',
251-
'reference' => '625ad742c360c8ac580fcc647a1541d29e257f67',
251+
'reference' => '87779285e14780b0a85209bfed8abd9d5fe0322e',
252252
'type' => 'library',
253253
'install_path' => __DIR__ . '/../php-http/httplug',
254254
'aliases' => array(),
@@ -257,7 +257,7 @@
257257
'php-http/message' => array(
258258
'pretty_version' => '1.x-dev',
259259
'version' => '1.9999999.9999999.9999999-dev',
260-
'reference' => 'fb1298fb3891b897f25500cf50afe16b66e90079',
260+
'reference' => 'ba03180f3b4844aea9c2f475978a8b231aef21a5',
261261
'type' => 'library',
262262
'install_path' => __DIR__ . '/../php-http/message',
263263
'aliases' => array(),
@@ -283,7 +283,7 @@
283283
'php-http/promise' => array(
284284
'pretty_version' => '1.x-dev',
285285
'version' => '1.9999999.9999999.9999999-dev',
286-
'reference' => '44a67cb59f708f826f3bec35f22030b3edb90119',
286+
'reference' => 'fc85b1fba37c169a69a07ef0d5a8075770cc1f83',
287287
'type' => 'library',
288288
'install_path' => __DIR__ . '/../php-http/promise',
289289
'aliases' => array(),
@@ -303,8 +303,8 @@
303303
'psr/http-client-implementation' => array(
304304
'dev_requirement' => false,
305305
'provided' => array(
306-
0 => '*',
307-
1 => '1.0',
306+
0 => '1.0',
307+
1 => '*',
308308
),
309309
),
310310
'psr/http-factory-implementation' => array(
@@ -357,7 +357,7 @@
357357
'symfony/deprecation-contracts' => array(
358358
'pretty_version' => '2.5.x-dev',
359359
'version' => '2.5.9999999.9999999-dev',
360-
'reference' => '80d075412b557d41002320b96a096ca65aa2c98d',
360+
'reference' => 'd36279a5a4bc7f3ca2c412839f10d7c0aa2c1a02',
361361
'type' => 'library',
362362
'install_path' => __DIR__ . '/../symfony/deprecation-contracts',
363363
'aliases' => array(),
@@ -366,7 +366,7 @@
366366
'symfony/http-foundation' => array(
367367
'pretty_version' => '5.4.x-dev',
368368
'version' => '5.4.9999999.9999999-dev',
369-
'reference' => '4da1713e88cf9c44bd4bf65f54772681222fcbec',
369+
'reference' => '9c375b2abef0b657aa0b7612b763df5c12a465ab',
370370
'type' => 'library',
371371
'install_path' => __DIR__ . '/../symfony/http-foundation',
372372
'aliases' => array(),
@@ -375,7 +375,7 @@
375375
'symfony/polyfill-mbstring' => array(
376376
'pretty_version' => '1.x-dev',
377377
'version' => '1.9999999.9999999.9999999-dev',
378-
'reference' => '42292d99c55abe617799667f454222c54c60e229',
378+
'reference' => '8740a072b86292957feb42703edde77fcfca84fb',
379379
'type' => 'library',
380380
'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
381381
'aliases' => array(),
@@ -384,7 +384,7 @@
384384
'symfony/polyfill-php80' => array(
385385
'pretty_version' => '1.x-dev',
386386
'version' => '1.9999999.9999999.9999999-dev',
387-
'reference' => '6caa57379c4aec19c0a12a38b59b26487dcfe4b5',
387+
'reference' => '77fa7995ac1b21ab60769b7323d600a991a90433',
388388
'type' => 'library',
389389
'install_path' => __DIR__ . '/../symfony/polyfill-php80',
390390
'aliases' => array(),

vendor/omnipay/common/.github/workflows/phpunit.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,34 @@ on:
44
pull_request:
55
push:
66
branches:
7-
- "master"
7+
- "master"
88

99
jobs:
1010
phpunit:
1111
name: "PHPUnit tests"
1212

13-
runs-on: ${{ matrix.operating-system }}
13+
runs-on: "ubuntu-latest"
1414

1515
strategy:
1616
matrix:
1717
dependencies:
18-
- "lowest"
1918
- "highest"
2019
php-version:
2120
- "7.2"
2221
- "7.3"
2322
- "7.4"
2423
- "8.0"
25-
operating-system:
26-
- "ubuntu-latest"
24+
- "8.1"
25+
- "8.2"
26+
- "8.3"
27+
28+
include:
29+
- php-version: '7.2'
30+
dependencies: "lowest"
2731

2832
steps:
2933
- name: "Checkout"
30-
uses: "actions/checkout@v2"
34+
uses: "actions/checkout@v4"
3135

3236
- name: "Install PHP"
3337
uses: "shivammathur/setup-php@v2"
@@ -39,11 +43,11 @@ jobs:
3943

4044
- name: "Install lowest dependencies"
4145
if: ${{ matrix.dependencies == 'lowest' }}
42-
run: "composer update --prefer-lowest --no-interaction --no-progress --no-suggest"
46+
run: "composer update --prefer-lowest --no-interaction --no-progress"
4347

4448
- name: "Install highest dependencies"
4549
if: ${{ matrix.dependencies == 'highest' }}
46-
run: "composer update --no-interaction --no-progress --no-suggest"
50+
run: "composer update --no-interaction --no-progress"
4751

4852
- name: "Tests"
4953
run: "vendor/bin/phpunit"

vendor/omnipay/common/README.md

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
[![PHPUnit tests](https://github.com/thephpleague/omnipay-common/actions/workflows/phpunit.yml/badge.svg)](https://github.com/thephpleague/omnipay-common/actions/workflows/phpunit.yml)
66
[![Latest Version on Packagist][ico-version]][link-packagist]
7-
[![Software License][ico-license]](LICENSE.md)
7+
[![Software License][ico-license]](LICENSE)
88
[![Total Downloads][ico-downloads]][link-downloads]
99

1010
[Omnipay](https://github.com/thephpleague/omnipay) is a framework agnostic, multi-gateway payment
@@ -21,10 +21,10 @@ Please see [UPGRADE](UPGRADE.md) for more information on how to upgrade to the l
2121
## Support
2222

2323
If you are having general issues with Omnipay, we suggest posting on
24-
[Stack Overflow](http://stackoverflow.com/). Be sure to add the
25-
[omnipay tag](http://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.
24+
[Stack Overflow](https://stackoverflow.com/). Be sure to add the
25+
[omnipay tag](https://stackoverflow.com/questions/tagged/omnipay) so it can be easily found.
2626

27-
If you want to keep up to date with release anouncements, discuss ideas for the project,
27+
If you want to keep up to date with release announcements, discuss ideas for the project,
2828
or ask more detailed questions, there is also a [mailing list](https://groups.google.com/forum/#!forum/omnipay) which
2929
you can subscribe to.
3030

@@ -39,14 +39,11 @@ If you discover any security related issues, please email [email protected] ins
3939

4040
## License
4141

42-
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.
42+
The MIT License (MIT). Please see [License File](LICENSE) for more information.
4343

4444
[ico-version]: https://img.shields.io/packagist/v/omnipay/common.svg?style=flat
4545
[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat
46-
[ico-build]: https://img.shields.io/travis/thephpleague/omnipay-common/master.svg?style=flat
4746
[ico-downloads]: https://img.shields.io/packagist/dt/omnipay/common.svg?style=flat
4847

4948
[link-packagist]: https://packagist.org/packages/omnipay/common
50-
[link-travis]: https://travis-ci.org/thephpleague/omnipay-common
5149
[link-downloads]: https://packagist.org/packages/omnipay/common
52-
[link-contributors]: ../../contributors

vendor/omnipay/common/composer.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,15 @@
4747
"php-http/message": "^1.5",
4848
"php-http/message-factory": "^1.1",
4949
"php-http/discovery": "^1.14",
50-
"symfony/http-foundation": "^2.1|^3|^4|^5|^6",
50+
"symfony/http-foundation": "^2.1|^3|^4|^5|^6|^7",
5151
"moneyphp/money": "^3.1|^4.0.3"
5252
},
5353
"require-dev": {
5454
"omnipay/tests": "^4.1",
55-
"php-http/mock-client": "^1",
55+
"php-http/mock-client": "^1.6",
5656
"php-http/guzzle7-adapter": "^1",
57-
"squizlabs/php_codesniffer": "^3.5"
57+
"squizlabs/php_codesniffer": "^3.8.1",
58+
"http-interop/http-factory-guzzle": "^1.1"
5859
},
5960
"extra": {
6061
"branch-alias": {
@@ -70,5 +71,10 @@
7071
"fix-style": "phpcbf -p --standard=PSR2 src/"
7172
},
7273
"minimum-stability": "dev",
73-
"prefer-stable": true
74+
"prefer-stable": true,
75+
"config": {
76+
"allow-plugins": {
77+
"php-http/discovery": true
78+
}
79+
}
7480
}

vendor/omnipay/sagepay/README.md

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# Omnipay: Sage Pay
1+
# Omnipay: Sage Pay (now Opayo by Elavon)
22

3-
**Sage Pay driver for the Omnipay PHP payment processing library**
3+
**Sage Pay/Opayo driver for the Omnipay PHP payment processing library**
44

55
[![Unit Tests](https://github.com/thephpleague/omnipay-sagepay/actions/workflows/run-tests.yml/badge.svg)](https://github.com/thephpleague/omnipay-sagepay/actions/workflows/run-tests.yml)
66
[![Latest Stable Version](https://poser.pugx.org/omnipay/sagepay/version.png)](https://packagist.org/packages/omnipay/sagepay)
@@ -14,6 +14,11 @@ This version supports PHP ^7.3 and PHP ^8.
1414
This is the `master` branch of Omnipay, handling Omnipay version `3.x`.
1515
For the `2.x` branch, please visit https://github.com/thephpleague/omnipay-sagepay/tree/2.x
1616

17+
From version 4.1.1 the new Opayo URLs are used in place of the old Sage Pay URLs.
18+
These new URLs will be mandatory from March 2023, so you must upgrade by then.
19+
The upgrade 4.0 to 4.1.1 should be seamless; all classes remain in the
20+
`Omnipay\SagePay` namespace.
21+
1722
Table of Contents
1823
=================
1924

@@ -965,7 +970,7 @@ or not, so can be used multiple times.
965970

966971
# Basket format
967972

968-
Sagepay currently supports two different formats for sending cart/item information to them:
973+
Sagepay currently supports two different formats for sending cart/item information to them:
969974
- [BasketXML](http://www.sagepay.co.uk/support/12/36/protocol-3-00-basket-xml)
970975
- [Basket](http://www.sagepay.co.uk/support/error-codes/3021-invalid-basket-format-invalid)
971976

@@ -985,28 +990,28 @@ The Basket format can be used for Sage 50 Accounts Software Integration:
985990
> reconcile the transactions on your account within your financial software.
986991
> If you wish to link a transaction to a specific product record this can be done through the Basket field
987992
in the transaction registration post.
988-
> Please note the following integration is not currently available when using BasketXML fields.
993+
> Please note the following integration is not currently available when using BasketXML fields.
989994
> In order for the download of transactions to affect a product record the first entry in a basket line needs
990995
to be the product code of the item within square brackets. For example:
991-
996+
992997
```
993998
4:[PR001]Pioneer NSDV99 DVD-Surround Sound System:1:424.68:74.32:499.00:499.00
994999
```
9951000

9961001
You can either prepend this onto the description or using `\Omnipay\SagePay\Extend\Item` you can use `setProductCode`
997-
which will take care of pre-pending `[]` for you.
1002+
which will take care of pre-pending `[]` for you.
9981003

9991004
# Account Types
10001005

10011006
Your Sage Pay account will use separate merchant accounts for difference transaction sources.
10021007
The sources are specified by the `accountType` parameter, and take one of three values:
10031008

1004-
* "E" Omnipay\SagePay\Message\AbstractRequest::ACCOUNT_TYPE_E (default)
1009+
* "E" Omnipay\SagePay\Message\AbstractRequest::ACCOUNT_TYPE_E (default)
10051010
For ecommerce transactions, entered in your application by the end user.
1006-
* "M" Omnipay\SagePay\Message\AbstractRequest::ACCOUNT_TYPE_M
1011+
* "M" Omnipay\SagePay\Message\AbstractRequest::ACCOUNT_TYPE_M
10071012
MOTO transactions taken by telephone or postal forms or faxes, entered by an operator.
10081013
The operator may ask for a CVV when taking a telephone order.
1009-
* "C" Omnipay\SagePay\Message\AbstractRequest::ACCOUNT_TYPE_C
1014+
* "C" Omnipay\SagePay\Message\AbstractRequest::ACCOUNT_TYPE_C
10101015
For repeat transactions, generated by the merchant site without any human intervention.
10111016

10121017
The "M" MOTO and "C" account types will also disable any 3D-Secure validation that may
@@ -1048,5 +1053,5 @@ If you believe you have found a bug, please report it using the [GitHub issue tr
10481053
or better yet, fork the library and submit a pull request.
10491054

10501055
#References
1051-
- [Sage pay tokens using token management](https://www.opayo.co.uk/file/1171/download-document/sagepaytokensystemprotocolandintegrationguidelinev3.0_0.pdf)
1056+
- [Sage pay tokens using token management](https://www.opayo.co.uk/file/2501/download-document/Token_System_Integration_and_Protocol_Guidelines3.00.pdf)
10521057
- [Other sage pay transaction types for Server method](https://developer-eu.elavon.com/docs/opayo-shared-api)

vendor/omnipay/sagepay/src/Message/ServerCompleteAuthorizeRequest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ public function getSignature()
5353
$this->httpRequest->request->get('DeclineCode', '').
5454
$this->httpRequest->request->get('ExpiryDate', '').
5555
$this->httpRequest->request->get('FraudResponse', '').
56-
$this->httpRequest->request->get('BankAuthCode', '');
56+
$this->httpRequest->request->get('BankAuthCode', '').
57+
// New for protocol v4.00
58+
// Described in the docs here: https://developer.elavon.com/products/opayo-server/v1/notification-of-transaction-result
59+
$this->httpRequest->request->get('ACSTransID', '').
60+
$this->httpRequest->request->get('DSTransID', '').
61+
$this->httpRequest->request->get('SchemeTraceID', '');
5762

5863
return md5($signature_string);
5964
}

vendor/omnipay/sagepay/tests/ServerGatewayTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,14 @@ public function testCompleteAuthorizeSuccess()
120120
'DeclineCode' => '00',
121121
'ExpiryDate' => '0722',
122122
'BankAuthCode' => '999777',
123+
// New fields for protocol v4.0
124+
'ACSTransID' => 'abcuuid',
125+
'DSTransID' => '123uuid',
126+
'SchemeTraceID' => 'V123',
123127
'VPSSignature' => md5(
124128
'{F955C22E-F67B-4DA3-8EA3-6DAC68FA59D2}'
125129
. '438791' . 'OK' . 'bexamplecJEUPDN1N7Edefghijklm' . '00' . '0722' . '999777'
130+
. 'abcuuid' . '123uuid' . 'V123'
126131
),
127132
)
128133
);

0 commit comments

Comments
 (0)