File tree Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Expand file tree Collapse file tree 2 files changed +47
-1
lines changed Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ public function getVaultSaveInfo() {
62
62
$ checkoutSessionData = $ this ->customerSession ->getData ('checkoutSessionData ' );
63
63
64
64
// 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 ' );
66
66
67
67
// Check if save card is requested
68
68
if (isset ($ checkoutSessionData ['saveShopperCard ' ])) {
Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments