Skip to content

Commit

Permalink
Merge pull request #93 from JustinElst/make-compatible-9-13-0
Browse files Browse the repository at this point in the history
Make compatible with adyen/module-payment 9.13.0
  • Loading branch information
khushboo-singhvi authored Jan 21, 2025
2 parents fc880ae + 3e42ef8 commit 0d29538
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Magewire/Payment/Method/AdyenPaymentComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
use Adyen\Hyva\Model\PaymentMethod\PaymentMethods;
use Adyen\Payment\Api\AdyenOrderPaymentStatusInterface;
use Adyen\Payment\Api\AdyenPaymentsDetailsInterface;
use Adyen\Payment\Gateway\Request\HeaderDataBuilder;
use Adyen\Payment\Gateway\Request\Header\HeaderDataBuilderInterface;
use Adyen\Payment\Helper\StateData;
use Adyen\Payment\Helper\Util\CheckoutStateDataValidator;
use Hyva\Checkout\Model\Magewire\Component\Evaluation\EvaluationResult;
Expand Down Expand Up @@ -102,7 +102,7 @@ public function placeOrder(array $data): void
$this->handleSessionVariables($data);
$quoteId = $this->session->getQuoteId();
$payment = $this->session->getQuote()->getPayment();
$payment->setAdditionalInformation(HeaderDataBuilder::FRONTENDTYPE, self::FRONTENDTYPE_HYVA);
$payment->setAdditionalInformation(HeaderDataBuilderInterface::ADDITIONAL_DATA_FRONTEND_TYPE_KEY, self::FRONTENDTYPE_HYVA);
$stateDataReceived = $this->collectValidatedStateData($data);
//Temporary (per request) storage of state data
$this->stateData->setStateData($stateDataReceived, (int) $quoteId);
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This module depends on:
The dependencies may be obtained like for example

```
"adyen/module-payment": "^9.6.1",
"adyen/module-payment": "^9.13.0",
"hyva-themes/magento2-default-theme": "^1.3",
"hyva-themes/magento2-hyva-checkout": "^1.1",
```
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"version": "1.2.2",
"license": "MIT",
"require": {
"adyen/module-payment": "^9.6.1",
"adyen/module-payment": "^9.13.0",
"hyva-themes/magento2-default-theme": "^1.3",
"hyva-themes/magento2-hyva-checkout": "^1.1"
},
Expand Down

0 comments on commit 0d29538

Please sign in to comment.