From 2bd440b5a55601e008a99c04c1d23a8cdffd65b3 Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Mon, 5 Jul 2021 10:02:57 +0200 Subject: [PATCH 1/3] Bugfix: Always save the order --- app/code/community/Mollie/Mpm/Model/Client/Payments.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/code/community/Mollie/Mpm/Model/Client/Payments.php b/app/code/community/Mollie/Mpm/Model/Client/Payments.php index cd2a2ef..5471875 100644 --- a/app/code/community/Mollie/Mpm/Model/Client/Payments.php +++ b/app/code/community/Mollie/Mpm/Model/Client/Payments.php @@ -255,6 +255,8 @@ public function processTransaction(Mage_Sales_Model_Order $order, $type = 'webho $msg = array('success' => true, 'status' => 'paid', 'order_id' => $orderId, 'type' => $type); $this->mollieHelper->addTolog('success', $msg); $this->checkCheckoutSession($order, $paymentToken, $paymentData, $type); + $order->save(); + return $msg; } From 70ef046d6e599c6ec2934608a49a2a577ad46c0d Mon Sep 17 00:00:00 2001 From: Michiel Gerritsen Date: Mon, 5 Jul 2021 10:01:10 +0200 Subject: [PATCH 2/3] Feature: Show available transaction details on the order page --- .../Mollie/Mpm/Block/Payment/Info/Base.php | 59 +++++++++++++++++++ .../mollie/mpm/payment/info/base.phtml | 28 ++++++++- 2 files changed, 86 insertions(+), 1 deletion(-) diff --git a/app/code/community/Mollie/Mpm/Block/Payment/Info/Base.php b/app/code/community/Mollie/Mpm/Block/Payment/Info/Base.php index aad5b27..0051211 100644 --- a/app/code/community/Mollie/Mpm/Block/Payment/Info/Base.php +++ b/app/code/community/Mollie/Mpm/Block/Payment/Info/Base.php @@ -159,4 +159,63 @@ public function getcardLabel() return ''; } + + public function getIssuer() + { + try { + $issuerCodeToName = [ + 'ideal_ABNANL2A' => 'ABN AMRO', + 'ideal_INGBNL2A' => 'ING', + 'ideal_RABONL2U' => 'Rabobank', + 'ideal_ASNBNL21' => 'ASN Bank', + 'ideal_BUNQNL2A' => 'Bunq', + 'ideal_HANDNL2A' => 'Handelsbanken', + 'ideal_KNABNL2H' => 'Knab', + 'ideal_RBRBNL21' => 'Regiobank', + 'ideal_REVOLT21' => 'Revolut', + 'ideal_SNSBNL2A' => 'SNS Bank', + 'ideal_TRIONL2U' => 'Triodos', + 'ideal_FVLBNL22' => 'Van Lanschot', + ]; + + $issuer = $this->getInfo()->getAdditionalInformation('selected_issuer'); + if (array_key_exists($issuer, $issuerCodeToName)) { + return $issuerCodeToName[$issuer]; + } + + return $issuer; + } catch (\Exception $exception) { + return null; + } + } + + public function getConsumerName() + { + try { + $details = json_decode($this->getInfo()->getAdditionalInformation('details'), true); + return $details['consumerName']; + } catch (\Exception $exception) { + return null; + } + } + + public function getIban() + { + try { + $details = json_decode($this->getInfo()->getAdditionalInformation('details'), true); + return $details['consumerAccount']; + } catch (\Exception $exception) { + return null; + } + } + + public function getBic() + { + try { + $details = json_decode($this->getInfo()->getAdditionalInformation('details'), true); + return $details['consumerBic']; + } catch (\Exception $exception) { + return null; + } + } } diff --git a/app/design/adminhtml/default/default/template/mollie/mpm/payment/info/base.phtml b/app/design/adminhtml/default/default/template/mollie/mpm/payment/info/base.phtml index 955f121..43bb1b9 100644 --- a/app/design/adminhtml/default/default/template/mollie/mpm/payment/info/base.phtml +++ b/app/design/adminhtml/default/default/template/mollie/mpm/payment/info/base.phtml @@ -78,6 +78,32 @@ $status = $this->getPaymentStatus(); + + getIssuer()): ?> + + + + + + getConsumerName()): ?> + + + + + + getIban()): ?> + + + + + + getBic()): ?> + + + + + + -getChildHtml() ?> \ No newline at end of file +getChildHtml() ?> From f32a90bd070583899d6efbbfd17959b3670ae9c3 Mon Sep 17 00:00:00 2001 From: Frank Tiggelman Date: Thu, 5 Aug 2021 08:11:23 +0200 Subject: [PATCH 3/3] - Updated icon sofort.png --- .../default/mollie/mpm/images/sofort.png | Bin 813 -> 2191 bytes 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 skin/adminhtml/default/default/mollie/mpm/images/sofort.png diff --git a/skin/adminhtml/default/default/mollie/mpm/images/sofort.png b/skin/adminhtml/default/default/mollie/mpm/images/sofort.png old mode 100755 new mode 100644 index 961a6663ad8ecda5242d0cf4c841b00c998e7b7f..f0a5b402855813f348586ad9dd83c5c0af1aa3c2 GIT binary patch literal 2191 zcmaJ@dpJ~iA3uXIq7-@6t2&J?gt?kw#&yiN3`XrVqEd{RqnXBBnmI9Uq1r^DqLp2d zUR|iHTXG2@sfb1FrYLPi>7uQuWW8rv+V_v%J~ z(E|X$faS&HAS+(|>S`n30F94H$g&uA4}>?!!r(}r0s`m)SttauB)shq2jU5$cHV>> z0YKA2#0`W4*}gQsOoHX9F<6yEj<5m1(M2Wa@x>4fhCuV@9dA=;12j~4T(0*s3@=%}J04kQrF167i6sgkC0!hG>dL-uMj4g-FHz+xxN zU!nrp>p_N00f7`O-iD9IQ$RZ^mO!zk*xFlzL_Cpz!xL}>q78veBNJ&vDme3CkZ1}) z7>&d9n2Cj)oG?NdmeX*!$jC@+Bnc~1Y{wC(R4NWn#1V-$2*O4gC53q^8>!NK)&mn# z@)aUEERsnRwb4>t;2FJ;LKFcBJQOks_@zQL(Kl33+~{;B-p!WI zw0B1`pwr28TMr`HgHE8}iA;(IW`-;HM)osY^8e-H5HUD)d;h21vnFJQ)Z4GaiyXd= zKO{wFUV#j^{^Zjb0MMFZG3i`Y|BFpqgl7Jxe|BWwWk;;ZD!$a`Gdkx&|7L4lROua;PoOs)!LwLi|j_hTEy6>51Tm_@;u)!1lfTBlDLh%)hGhP;(6R0Wf)w zf71gPvQZlfu{DFt)}n(!Pgl@B{SyA}BoDAQaU$JXWXQbWv3^;bniG$v!1?(HCCX6Ij)|M3aJ-&0<9dnMD z48|q58`%e&ase=S?(^y#>5tvix1n8Dr7Z==0-iiDf(wo-4=9Cy#va+3{9sv55~2y5BeTvzvXghI%I+oQhdD zl$hlpj}A2(+J8O8=24A*QrcGq;Q44{?sWP|IH?Rcl3#+D=)1Y8%pfl z`FVm@<_ZkC8upv{10lJ-ElLgTMb7re+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