From 7e520fff8afdacb653620e139706475493af80a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20Beganovi=C4=87?= Date: Fri, 13 Aug 2021 07:56:41 +0200 Subject: [PATCH] Unless payment status is paid, make it pending --- app/PaymentDrivers/Mollie/CreditCard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/PaymentDrivers/Mollie/CreditCard.php b/app/PaymentDrivers/Mollie/CreditCard.php index cb6fa475b6d1..f8f5f57f9cdb 100644 --- a/app/PaymentDrivers/Mollie/CreditCard.php +++ b/app/PaymentDrivers/Mollie/CreditCard.php @@ -180,7 +180,7 @@ class CreditCard 'transaction_reference' => $payment->id, ]; - $payment_record = $this->mollie->createPayment($data, Payment::STATUS_COMPLETED); + $payment_record = $this->mollie->createPayment($data, $payment->status === 'paid' ? Payment::STATUS_COMPLETED : Payment::STATUS_PENDING); SystemLogger::dispatch( ['response' => $payment, 'data' => $data],