Skip to content

Commit 5b3ef27

Browse files
Merge pull request #46 from appinlet/release/2.5.6
[[v2.5.6]]() - 2024-09-30
2 parents 898ccbe + 1677819 commit 5b3ef27

File tree

7 files changed

+270
-114
lines changed

7 files changed

+270
-114
lines changed

CHANGELOG.md

Lines changed: 238 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,238 @@
1+
# Changelog
2+
3+
## [[v2.5.6]]() - 2024-09-30
4+
5+
### Fixed
6+
- Property Declared Dynamically PHP 8.2 Errors.
7+
- Cron not running for orders with unique initial statuses.
8+
9+
## [[v2.5.5]]() - 2024-05-03
10+
11+
### Added
12+
- Mask Paygate encryption key.
13+
14+
### Changed
15+
- Improve debug logging.
16+
17+
### Fixed
18+
- RCS payment type support.
19+
20+
## [[v2.5.4]]() - 2024-01-16
21+
22+
### Changed
23+
- Return accepted Magento return object for the notify controller.
24+
25+
## [[v2.5.3]]() - 2023-12-07
26+
27+
### Fixed
28+
- Fix issues with Apple Pay payment type not selecting as expected.
29+
30+
## [[v2.5.2]]() - 2023-11-15
31+
32+
### Added
33+
- Apple Pay, Samsung Pay, and RCS Payment Types.
34+
- Option to force Payment Type selection.
35+
36+
### Changed
37+
- Tested on Magento 2.4.6.
38+
- Refactor in keeping with Magento 2 PHP code standards.
39+
- Update composer requirements.
40+
41+
### Fixed
42+
- Redirection issues to payment page (CSP whitelist).
43+
44+
## [[v2.5.1]]() - 2022-08-15
45+
46+
### Changed
47+
- Magento 2.4.5 and PHP 8.1 compatibility.
48+
- Code quality improvements and bug fixes.
49+
50+
## [[v2.5.0]]() - 2022-06-30
51+
52+
### Added
53+
- Ability to set Successful Order State in addition to Successful Order Status.
54+
55+
### Changed
56+
- Remove `layout="1column"` from frontend.
57+
- **BREAKING CHANGE:** Ensure Successful Order State is configured after update.
58+
59+
## [[v2.4.9]]() - 2022-01-05
60+
61+
### Changed
62+
- Improve store scope handling.
63+
- Update Masterpass to Scan to Pay.
64+
65+
## [[v2.4.8]]() - 2021-10-20
66+
67+
### Changed
68+
- Improve fetch method to uncancel approved fetched orders.
69+
70+
## [[v2.4.7]]() - 2021-10-08
71+
72+
### Added
73+
- Debug logging option for fetch method.
74+
75+
### Changed
76+
- Only use real order ID in PayWeb reference field.
77+
78+
## [[v2.4.6]]() - 2021-09-15
79+
80+
### Changed
81+
- Disable PayGate on unsupported multiship.
82+
- Fix undefined offset on cron query method.
83+
- Improve Payment Type styling on one-step checkout.
84+
- Add additional logging on fetch method.
85+
86+
## [[v2.4.5]]() - 2021-08-12
87+
88+
### Added
89+
- PayPal payment type.
90+
91+
### Fixed
92+
- Fix Swagger API issue.
93+
- Fix DATA_CHK issue on Payment Types.
94+
95+
## [[v2.4.4]]() - 2021-07-30
96+
97+
### Changed
98+
- Consolidate Cron class into single file for Magento 2.4.x.
99+
- Block double order processing on multiple requests.
100+
- Add API support for PayGate payment gateway.
101+
- Improve multisite scope handling for Fetch and Cron.
102+
- Add support for Store Credit if available (`getTotalDue`).
103+
104+
## [[v2.4.3]]() - 2021-07-05
105+
106+
### Changed
107+
- Increase cron schedule to query every 10 minutes.
108+
109+
## [[v2.4.2]]() - 2021-06-15
110+
111+
### Fixed
112+
- Fix cron query method not firing as expected on some configurations.
113+
- Fix 'Fetch' query method not updating order status from backend.
114+
- Remove redirect button.
115+
- Improve IPN reliability.
116+
117+
## [[v2.4.1]]() - 2021-05-14
118+
119+
### Added
120+
- Transaction ID added for Pending orders after initiate.
121+
- Payment Types radio block fix for some themes.
122+
123+
### Fixed
124+
- Fix PayVault Card Delete.
125+
- Fix undefined index error `$orderData['additional_information']`.
126+
- Order status set to pending if checksum fails to pick up by cron.
127+
- Don't update order status by IPN if already complete or processing.
128+
129+
## [[v2.4.0]]() - 2021-04-06
130+
131+
### Added
132+
- Support for Magento 2.4.x.
133+
- PayWeb Query function.
134+
- PayVault feature.
135+
- Payment Types feature.
136+
137+
### Changed
138+
- Remove legacy iFrame code.
139+
- Use Magento Payment Transactions instead of order comments.
140+
- Improve handling of spaces in PayGate ID.
141+
142+
## [[v2.3.4]]() - 2020-09-23
143+
144+
### Fixed
145+
- Fix order page redirect if successful transaction on some servers.
146+
147+
## [[v2.3.3]]() - 2020-09-16
148+
149+
### Fixed
150+
- Fix sessions cleared in some browsers.
151+
152+
## [[v2.3.2]]() - 2020-01-24
153+
154+
### Changed
155+
- Improve testing validation for existing invoices.
156+
- Tested with Magento 2.3.3.
157+
158+
## [[v2.3.1]]() - 2019-12-14
159+
160+
### Added
161+
- CSRF handling in notify script.
162+
- Changelog.
163+
164+
### Changed
165+
- Version check for CSRF - 2.3.0+ only.
166+
- Use Grand Total only in PayGate.
167+
168+
## [[v2.3.0]]() - 2019-12-14
169+
170+
### Added
171+
- Better compatibility with Magento 2.2.x.
172+
173+
### Changed
174+
- Process order updates in IPN or redirect.
175+
- Minor bug fixes.
176+
177+
## [[v2.2.9]]() - 2019-04-30
178+
179+
### Added
180+
- Magento 2.3.1 compatibility.
181+
- CSRF form validation.
182+
- OneStepCheckout compatibility.
183+
184+
## [[v2.2.8]]() - 2018-09-18
185+
186+
### Fixed
187+
- Fix children order cancelling issue.
188+
189+
## [[v2.2.7]]() - 2018-09-11
190+
191+
### Added
192+
- Add order send and options.
193+
194+
## [[v2.2.6]]() - 2018-08-30
195+
196+
### Added
197+
- Initial release.
198+
199+
## [[v2.2.5]]() - 2018-08-23
200+
201+
### Changed
202+
- Hide close button.
203+
- Disable close modal.
204+
205+
## [[v2.2.4]]() - 2018-06-28
206+
207+
### Fixed
208+
- Fix invoices not automatically created.
209+
210+
## [[v2.2.3]]() - 2018-03-06
211+
212+
### Changed
213+
- Apply rebranding.
214+
- Fix redirect issue.
215+
216+
## [[v2.2.2]]() - 2017-11-09
217+
218+
### Added
219+
- Setup instructions.
220+
221+
### Fixed
222+
- Config bug fix.
223+
224+
## [[v2.2.1]]() - 2017-10-29
225+
226+
### Added
227+
- Add system settings per store.
228+
- Include ZAR as currency.
229+
230+
### Fixed
231+
- Fix test mode bug.
232+
- Fix errors.
233+
234+
## [[v2.2.0]]() - 2017-10-09
235+
236+
### Changed
237+
- Change copyright 2015 -> 2017.
238+
- Initial version.

Cron/CronQuery.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ function () {
126126
$this->_logger->info('Cutoff: ' . $cutoffTime);
127127
$ocf = $this->_orderCollectionFactory->create();
128128
$ocf->addAttributeToSelect('entity_id');
129-
$ocf->addAttributeToFilter('status', ['eq' => 'pending_payment']);
129+
$ocf->addAttributeToFilter('state', ['eq' => 'pending_payment']);
130130
$ocf->addAttributeToFilter('created_at', ['lt' => $cutoffTime]);
131131
$ocf->addAttributeToFilter('updated_at', ['lt' => $cutoffTime]);
132132
$orderIds = $ocf->getData();
133133

134-
$this->_logger->info('Orders for cron: ' . json_encode($orderIds));
134+
$this->_logger->info('Pending orders found: ' . json_encode($orderIds));
135135

136136
foreach ($orderIds as $orderId) {
137137
$order_id = $orderId['entity_id'];
@@ -155,7 +155,8 @@ function () {
155155
}
156156
}
157157

158-
if (! empty($transactionId) & $PaymentTitle == "PAYGATE_PAYWEB") {
158+
if (! empty($transactionId) && $PaymentTitle === "PAYGATE_PAYWEB") {
159+
$this->_logger->info('Processing order #' . $orderId['entity_id']);
159160
$orderquery['orderId'] = $order->getRealOrderId();
160161
$orderquery['country'] = $order->getBillingAddress()->getCountryId();
161162
$orderquery['currency'] = $order->getOrderCurrencyCode();

Model/PayGate.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ public function prepareFields($order, $api = null): array
638638
'paygate/notify',
639639
['_secure' => true]
640640
) . '?eid=' . $entityOrderId;
641-
$fields['USER3'] = 'magento2-v2.5.5';
641+
$fields['USER3'] = 'magento2-v2.5.6';
642642

643643
return $fields;
644644
}

README.md

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,39 @@
11
# PayWeb_Magento_2
2-
## PayGate Magento plugin v2.5.5 for Magento v2.4.6
2+
## PayGate Magento plugin v2.5.6 for Magento v2.4.7
33

44
This is the Paygate PayWeb3 plugin for Magento 2. Please feel free to contact the Payfast support team at support@payfast.help should you require any assistance.
55

66
## Installation
7-
[![How To Setup PayGate PayWeb for Magento 2](https://appinlet.com/wp-content/uploads/2021/01/How-To-Setup-PayGate-PayWeb-for-Magento-2.jpg)](https://www.youtube.com/watch?v=JtDTm49cWmU "How To Setup PayGate PayWeb for Magento 2")
87

9-
You can install this module using composer:
8+
### Option 1 - Automatic Installation
9+
10+
Install the module using the following composer command:
1011

1112
```console
1213
composer require paygate/paygate-payweb-gateway
1314
```
1415

15-
Alternatively, please navigate to the [releases page](https://github.com/PayGate/PayWeb_Magento_2/releases), download the latest release (v2.5.5) and unzip. You will then be able to follow the integration guide PDF which is included in the zip.
16+
### Option 2 - Manual Installation
17+
18+
Navigate to the [releases page](https://github.com/PayGate/PayWeb_Magento_2/releases) and download the latest release. Extract the contents of the mentioned zip file, then upload the newly created **PayGate** directory into your Magento app/code directory (e.g. magentorootfolder/app/code/).
19+
20+
### Magento CLI Commands
21+
22+
Run the following Magento CLI commands:
23+
24+
```console
25+
php bin/magento module:enable PayGate_PayWeb
26+
php bin/magento setup:upgrade
27+
php bin/magento setup:di:compile
28+
php bin/magento setup:static-content:deploy
29+
php bin/magento indexer:reindex
30+
php bin/magento cache:clean
31+
```
32+
33+
### Configuration
34+
35+
Login to the admin panel and navigate to **Stores** > **Configuration** > **Sales** > **Payment Methods** and click on **Paygate PayWeb3**. Configure the module according to your needs, then click the **Save
36+
Config** button.
1637

1738
## Collaboration
1839

0 commit comments

Comments
 (0)