Skip to content

Commit 15a40db

Browse files
fix: Incorrect import (#24)
Co-authored-by: Marcus Bjerringgaard <ma@quantity.dk>
1 parent 9345368 commit 15a40db

File tree

4 files changed

+34
-5
lines changed

4 files changed

+34
-5
lines changed

CHANGELOG.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,57 +4,86 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## 4.2.2 - 2024-08-22
8+
9+
### Fixed
10+
11+
- Fixed incorrect import, making case sensitive confirgurations fail on auto capture
12+
713
## 4.2.1 - 2024-03-18
14+
815
### Fixed
16+
917
- Fixed an issue where transactions would be ralated to the wrong parent transaction
1018

1119
## 4.2.0 - 2024-02-20
20+
1221
### Fixed
22+
1323
- Updated capture functionallity to make use of outstanding balance instead of PaymentAmount
1424

1525
### Added
26+
1627
- Added 'EVENT_BEFORE_PAYMENT_CAPTURE_AMOUNT' to modify the amount being captured
1728

1829
## 4.1.9 - 2024-01-22
30+
1931
### Added
32+
2033
- Callback functionallity on Capture events
2134

2235
## 4.1.8 - 2023-11-14
36+
2337
### Added
38+
2439
- Enabled the following gateways: Anyday split, Google pay, Apple pay
2540

2641
## 4.1.7 - 2023-10-30
42+
2743
### Added
44+
2845
- Added events to modify quickpay basket
2946

3047
## 4.1.6 - 2023-10-18
48+
3149
### Fixed
50+
3251
- Updated to use crafts native payment amounts
3352

3453
## 4.1.5 - 2023-10-18
54+
3555
### Fixed
56+
3657
- Updated to use crafts native payment amounts
3758

3859
## 4.1.4 - 2023-08-29
60+
3961
### Fixed
62+
4063
- Fixed bug when running autocapture job
4164

4265
## 4.1.3 - 2023-08-29
66+
4367
### Fixed
44-
- Fixed bug when capturing payment
4568

69+
- Fixed bug when capturing payment
4670

4771
## 4.1.2 - 2023-08-29 [CRITICAL]
4872

4973
### Fixed
74+
5075
- Fixed critical error, where orders could be marked as complete, before the payment was made & completed in quickpay
5176

5277
## 4.1.1 - 2023-08-25
78+
5379
### Added
80+
5481
- Added new gateway setting, to define if amounts sent to quickpay should be converted into paymentcurrency. Is default set to `false`
5582

5683
## 4.1.1 - 2023-08-25
84+
5785
### Added
86+
5887
- Added new gateway setting, to define if amounts sent to quickpay should be converted into paymentcurrency. Is default set to `false`
5988

6089
## 4.1.0 - 2023-06-23

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "quantity-digital/commerce-quickpay",
33
"description": "QuickPay integration for Craft Commerce 4",
44
"type": "craft-plugin",
5-
"version": "4.2.1",
5+
"version": "4.2.2",
66
"keywords": [
77
"craft",
88
"cms",

src/Plugin.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
use craft\events\DefineBehaviorsEvent;
1717
use QD\commerce\quickpay\plugin\Services;
1818
use QD\commerce\quickpay\behaviors\TransactionBehavior;
19+
use craft\base\Plugin as BasePlugin;
1920

20-
class Plugin extends \craft\base\Plugin
21+
class Plugin extends BasePlugin
2122
{
2223
use Services;
2324

src/queue/CapturePayment.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
namespace QD\commerce\quickpay\queue;
44

55
use Craft;
6-
use craft\commerce\base\GatewayInterface as BaseGatewayInterface;
6+
use craft\commerce\elements\Order;
77
use craft\queue\BaseJob;
88
use craft\commerce\Plugin as Commerce;
99
use craft\commerce\records\Transaction as TransactionRecord;
10-
use \craft\Commerce\elements\Order;
1110
use craft\helpers\App;
1211
use craft\mail\Message;
1312
use Exception;

0 commit comments

Comments
 (0)