From 4a06b3056114a86fc046428790988d4a00425439 Mon Sep 17 00:00:00 2001 From: Stuart Baillie Date: Fri, 7 Oct 2022 13:23:24 +0100 Subject: [PATCH 1/4] JR-6621 : Copy change request from https://github.com/Judopay/Judo-PHP/pull/77 --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index d48ab73..bc98a1c 100644 --- a/composer.json +++ b/composer.json @@ -18,7 +18,7 @@ "repositories": [], "require": { "php": ">=5.5", - "guzzlehttp/guzzle": "~6.0", + "guzzlehttp/guzzle": "~6.0 | ^7.0", "pimple/pimple": "~3.0", "psr/log": "^1.0", "ext-openssl": ">=0.0.0", From cf4be954bc56942294d04fa8fe51973ec1818f07 Mon Sep 17 00:00:00 2001 From: Stuart Baillie Date: Fri, 7 Oct 2022 13:51:55 +0100 Subject: [PATCH 2/4] JR-6221 : Update ThreeDSecureTwoTest to specify a ChallengeRequestIndicator request attribute, as without that the system default to requesting a challenge --- tests/ThreeDSecureTwoTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/ThreeDSecureTwoTest.php b/tests/ThreeDSecureTwoTest.php index 46b7ad8..44b277f 100644 --- a/tests/ThreeDSecureTwoTest.php +++ b/tests/ThreeDSecureTwoTest.php @@ -278,7 +278,8 @@ public function testPaymentWithThreeDSecureTwoNoDeviceDetailsOrChallenge() { // Build a threeDSecureTwo payment $threeDSecureTwo = array( - 'authenticationSource' => "Browser" + 'authenticationSource' => "Browser", + 'challengeRequestIndicator' => "NoPreference" ); // Using a cardholder name that results in no device details or challenge call From 00f24ab9c2e2b29e629e66d2af157bf3ce59e1ff Mon Sep 17 00:00:00 2001 From: Stuart Baillie Date: Fri, 7 Oct 2022 14:09:50 +0100 Subject: [PATCH 3/4] JR-6621 : Replace deprecated Psr7\stream_for with Psr7\Utils::streamFor --- spec/SpecHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/SpecHelper.php b/spec/SpecHelper.php index 51ba6c5..63617cd 100644 --- a/spec/SpecHelper.php +++ b/spec/SpecHelper.php @@ -110,7 +110,7 @@ public static function getFixtureResponse($responseCode, $fixtureFile = null) $fixtureContent = file_get_contents(__DIR__.'/fixtures/'.$fixtureFile); } - $stream = Psr7\stream_for($fixtureContent); + $stream = Psr7\Utils::streamFor($fixtureContent); $mockResponse = new Response( $responseCode, // statusCode From 8a0549da3c4b5123d83462d02f78d6cca77888ff Mon Sep 17 00:00:00 2001 From: Stuart Baillie Date: Fri, 7 Oct 2022 14:44:47 +0100 Subject: [PATCH 4/4] JR-6621 : Update links to documentation sites in README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 99e1b41..36cb6f0 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ To make a new payment with full card details: ``` **Note:** Please make sure that you are using a unique Consumer Reference for each different consumer, and a unique Payment Reference for each transaction. -Card address details can optionally be included for use in AVS checks as follows, (see full list of parameters [here](https://docs.judopay.com/#register-a-card)) +Card address details can optionally be included for use in AVS checks as follows, (see full list of parameters [here](https://docs.judopay.com/Content/Server%20SDKs/Server%20SDKs_1.htm#Server)) ```php $payment = $judopay->getModel('Payment'); @@ -73,14 +73,14 @@ Card address details can optionally be included for use in AVS checks as follows ); ``` -You can check on the required fields and the format of each field in the [Judopay REST API reference](https://docs.judopay.com/api/index.html). +You can check on the required fields and the format of each field in the [Judopay REST API reference](https://docs.judopay.com/api-reference/index.html). To send the request to the API, call: ```php $response = $payment->create(); ``` ##### 4. Check the payment result -If the payment is successful, you'll receive a response array like this (see full response [here](https://docs.judopay.com/#card-payment)): +If the payment is successful, you'll receive a response array like this (see full response [here](https://docs.judopay.com/Content/Server%20SDKs/Server%20SDKs_1.htm#Server)): ```php Array ( @@ -94,7 +94,7 @@ If the payment is successful, you'll receive a response array like this (see ful [yourPaymentReference] => 12345 ) ``` -Also important to handle different exceptions in your code. See more details in our [error handling section](https://github.com/JudoPay/PhpSdk/wiki/Error-handling). +Also important to handle different exceptions in your code. See more details in our [error handling section](https://docs.judopay.com/Content/Sandbox%20Testing/Test%20Scenarios.htm). ```php try { $response = $payment->create();