Skip to content

Commit

Permalink
Merge pull request #921 from mollie/fix/PIWOO-446
Browse files Browse the repository at this point in the history
Fix/piwoo 446
  • Loading branch information
mmaymo authored Jul 3, 2024
2 parents a890c42 + 2f2276a commit 8d2cee6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/MerchantCapture/Capture/Action/CapturePayment.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ class CapturePayment extends AbstractPaymentCaptureAction
public function __invoke()
{
try {
$payment = $this->order->get_payment_method();
if (strpos($payment, 'mollie') === false) {
return;
}

$paymentId = $this->order->get_meta('_mollie_payment_id');

if (!$paymentId) {
Expand Down

0 comments on commit 8d2cee6

Please sign in to comment.