Skip to content

Commit ad73fe0

Browse files
Vault request but fix
Fixed a missing $this preventing the vault request to run.
1 parent bfd251d commit ad73fe0

File tree

2 files changed

+47
-1
lines changed

2 files changed

+47
-1
lines changed

Gateway/Request/VaultRequest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public function getVaultSaveInfo() {
6262
$checkoutSessionData = $this->customerSession->getData('checkoutSessionData');
6363

6464
// Get the auto save card config
65-
$isAutoSave = $scopeConfig->getValue('payment/checkout_com_cc_vault/autosave');
65+
$isAutoSave = $this->scopeConfig->getValue('payment/checkout_com_cc_vault/autosave');
6666

6767
// Check if save card is requested
6868
if (isset($checkoutSessionData['saveShopperCard'])) {

Observer/OrderCancelObserver.php

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
<?php
2+
/**
3+
* Checkout.com Magento 2 Payment module (https://www.checkout.com)
4+
*
5+
* Copyright (c) 2017 Checkout.com (https://www.checkout.com)
6+
* Author: David Fiaty | [email protected]
7+
*
8+
* License GNU/GPL V3 https://www.gnu.org/licenses/gpl-3.0.en.html
9+
*/
10+
11+
namespace CheckoutCom\Magento2\Observer;
12+
13+
use Magento\Framework\Event\Observer;
14+
use Magento\Framework\Event\ObserverInterface;
15+
use Magento\Framework\App\Request\DataPersistorInterface;
16+
use Magento\Sales\Api\Data\OrderInterface;
17+
18+
class OrderCancelObserver implements ObserverInterface {
19+
20+
/**
21+
* @var OrderInterface
22+
*/
23+
protected $orderInterface;
24+
25+
public function __construct(OrderInterface $order) {
26+
$this->orderInterface = $orderInterface;
27+
}
28+
29+
/**
30+
* Handles the observer for order cancellation.
31+
*
32+
* @param Observer $observer
33+
* @return void
34+
*/
35+
public function execute(Observer $observer) {
36+
37+
$orderids = $observer->getEvent()->getOrderIds();
38+
39+
echo "<pre>";
40+
var_dump($orderids);
41+
echo "</pre>";
42+
43+
exit();
44+
}
45+
46+
}

0 commit comments

Comments
 (0)