File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,12 @@ public function execute(Observer $observer)
37
37
/** @var \Magento\Sales\Model\Order\Payment\Transaction $transaction */
38
38
$ transaction = $ observer ->getDataObject ();
39
39
$ order = $ transaction ->getOrder ();
40
+
40
41
$ txnIdArray = explode ("- " , $ transaction ->getTxnId ());
41
42
$ txnId = reset ($ txnIdArray );
42
- $ methods = [
43
- 'buckaroo_magento2_emandate ' ,
44
- 'buckaroo_magento2_klarnakp '
45
- ];
43
+
46
44
if ($ this ->isBuckarooPayment ($ order ->getPayment ()) && $ txnId !== false ) {
47
- if (in_array ( $ order -> getPayment ()-> getMethod (), $ methods )) {
45
+ if ($ transaction -> getTxnType () == ' authorization ' ) {
48
46
$ transaction ->setData ('html_txn_id ' ,
49
47
sprintf (
50
48
'<a href="https://plaza.buckaroo.nl/Transaction/DataRequest/Details/%s" target="_blank">%s</a> ' ,
You can’t perform that action at this time.
0 commit comments