Skip to content

Commit 4aa806d

Browse files
authored
Merge pull request #53 from afterpay/fix/empty-create-class-for-prestashop
Fix: add empty class for PS upgrade compatibility
2 parents cd20795 + cc71fdf commit 4aa806d

File tree

4 files changed

+42
-2
lines changed

4 files changed

+42
-2
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## Version 1.4.1
4+
5+
_Fri 06 May 2022_
6+
7+
- Add an empty class for PS upgrade compatibility (INC-1751)
8+
39
## Version 1.4.0
410

511
_Thu 24 Feb 2022_

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ echo $createCheckoutRequest->getRawLog();
249249
POST /v2/checkouts HTTP/2
250250
Host: global-api-sandbox.afterpay.com
251251
Authorization: Basic MzM******************************************************************************************************************************************************************************TA=
252-
User-Agent: afterpay-sdk-php/1.4.0 (PHP/8.1.1; cURL/7.77.0; Merchant/*****)
252+
User-Agent: afterpay-sdk-php/1.4.1 (PHP/8.1.1; cURL/7.77.0; Merchant/*****)
253253
Accept: */*
254254
Content-Type: application/json
255255
Content-Length: 1223

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "afterpay-global/afterpay-sdk-php",
33
"license": "Apache-2.0",
44
"description": "Official Afterpay SDK for PHP",
5-
"version": "1.4.0",
5+
"version": "1.4.1",
66
"authors": [
77
{
88
"name": "Afterpay",

src/HTTP/Response/CreateCheckout.php

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (c) 2020-2021 Afterpay Corporate Services Pty Ltd
5+
*
6+
* Licensed under the Apache License, Version 2.0 (the "License");
7+
* you may not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing, software
13+
* distributed under the License is distributed on an "AS IS" BASIS,
14+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
* See the License for the specific language governing permissions and
16+
* limitations under the License.
17+
*/
18+
19+
/**
20+
* This file needs to be here to avoid a debris issue
21+
* See INC-1751; #apt-im-01124
22+
*/
23+
24+
namespace Afterpay\SDK\HTTP\Response;
25+
26+
use Afterpay\SDK\HTTP\Response;
27+
28+
class CreateCheckout extends Response
29+
{
30+
public function __construct()
31+
{
32+
parent::__construct();
33+
}
34+
}

0 commit comments

Comments
 (0)