Skip to content

Commit

Permalink
[v2.6.0]
Browse files Browse the repository at this point in the history
### Added

- Compatibility update for Magento 2.4.7 and PHP 8.2.
- Support for **BWP** and **NAD** currencies.

### Fixed

- Resolved issue where orders with unique order IDs were not being located.
- Fixed duplicate invoice generation for certain orders.
- Query method for **Cron** and **Fetch** reliability.
  • Loading branch information
appinlet committed Dec 12, 2024
1 parent 5b3ef27 commit ea402ce
Show file tree
Hide file tree
Showing 38 changed files with 1,045 additions and 762 deletions.
10 changes: 1 addition & 9 deletions Block/Customer/CardRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,6 @@
* @noinspection PhpUnused
*/

/**
* @noinspection PhpUndefinedNamespaceInspection
*/

/**
* @noinspection PhpUndefinedNamespaceInspection
*/

/*
* Copyright (c) 2024 Payfast (Pty) Ltd
*
Expand All @@ -29,7 +21,7 @@ class CardRenderer extends AbstractCardRenderer
/**
* Can render specified token
*
* @param PaymentTokenInterface $token
* @param PaymentTokenInterface $token
*
* @return boolean
* @since 100.1.0
Expand Down
17 changes: 5 additions & 12 deletions Block/Form.php
Original file line number Diff line number Diff line change
@@ -1,11 +1,4 @@
<?php
/**
* @noinspection PhpMissingFieldTypeInspection
*/

/**
* @noinspection PhpUndefinedNamespaceInspection
*/

/**
* Copyright (c) 2024 Payfast (Pty) Ltd
Expand Down Expand Up @@ -71,12 +64,12 @@ class Form extends \Magento\Payment\Block\Form
protected $_logger;

/**
* @param Context $context
* @param ConfigFactory $paygateConfigFactory
* @param Context $context
* @param ConfigFactory $paygateConfigFactory
* @param ResolverInterface $localeResolver
* @param Data $paygateData
* @param CurrentCustomer $currentCustomer
* @param array $data
* @param Data $paygateData
* @param CurrentCustomer $currentCustomer
* @param array $data
*/
public function __construct(
Context $context,
Expand Down
10 changes: 3 additions & 7 deletions Block/Payment/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* @noinspection PhpPropertyOnlyWrittenInspection
*/

/**
* @noinspection PhpUndefinedNamespaceInspection
*/

/*
* Copyright (c) 2024 Payfast (Pty) Ltd
*
Expand Down Expand Up @@ -38,10 +34,10 @@ class Info extends \Magento\Payment\Block\Info
private Config $_paymentConfig;

/**
* @param Context $context
* @param Config $paymentConfig
* @param Context $context
* @param Config $paymentConfig
* @param InfoFactory $PaygateInfoFactory
* @param array $data
* @param array $data
*/
public function __construct(
Context $context,
Expand Down
35 changes: 14 additions & 21 deletions Block/Payment/Request.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
<?php
/**
* @noinspection PhpMissingFieldTypeInspection
*/

/**
* @noinspection PhpUnused
*/

/**
* @noinspection PhpUndefinedNamespaceInspection
*/

/**
* Copyright (c) 2024 Payfast (Pty) Ltd
*
Expand Down Expand Up @@ -63,13 +56,13 @@ class Request extends Template
protected $_isScopePrivate;

/**
* @param Context $context
* @param Context $context
* @param OrderFactory $orderFactory
* @param Session $checkoutSession
* @param ReadFactory $readFactory
* @param Reader $reader
* @param PayGate $paymentMethod
* @param array $data
* @param Session $checkoutSession
* @param ReadFactory $readFactory
* @param Reader $reader
* @param PayGate $paymentMethod
* @param array $data
*
* @noinspection PhpUnused
*/
Expand Down Expand Up @@ -100,14 +93,14 @@ public function __construct(
public function _prepareLayout()
{
$this->setMessage('Redirecting to Paygate')
->setId('paygate_checkout')
->setName('paygate_checkout')
->setFormMethod('POST')
->setFormAction('https://secure.paygate.co.za/payweb3/process.trans')
->setFormData($this->_paymentMethod->getStandardCheckoutFormFields())
->setSubmitForm(
'<script type="text/javascript">document.getElementById( "paygate_checkout" ).submit();</script>'
);
->setId('paygate_checkout')
->setName('paygate_checkout')
->setFormMethod('POST')
->setFormAction('https://secure.paygate.co.za/payweb3/process.trans')
->setFormData($this->_paymentMethod->getStandardCheckoutFormFields())
->setSubmitForm(
'<script type="text/javascript">document.getElementById( "paygate_checkout" ).submit();</script>'
);

return parent::_prepareLayout();
}
Expand Down
Loading

0 comments on commit ea402ce

Please sign in to comment.