Closed cowell-manhnt7190 closed 2 years ago
Hi @cowell-manhnt7190 thank you for reaching out to us. This is an acknowledgeable bug/issue. Currently still on the development to fix and hopefully can release this week.
Anyway, for a temporary workaround. May you can change these line code
from this
$order_note = $note_prefix . 'Payment Completed - ' . $payment_type;
if ($order->canInvoice()) {
$this->paymentOrderRepository->generateInvoice($order);
}
$this->paymentOrderRepository->setOrderStateAndStatus($order, Order::STATE_PROCESSING, $order_note);
to this
$order_note = $note_prefix . 'Payment Completed - ' . $payment_type;
$this->paymentOrderRepository->setOrderStateAndStatus($order, Order::STATE_PROCESSING, $order_note);
if ($order->canInvoice()) {
$this->paymentOrderRepository->generateInvoice($order);
}
Thank you
Hi @Xaxxis Thank you for your information. Hope there will be an update soon.
The fix is already on Pull request https://github.com/Midtrans/Midtrans-Magento2/pull/33 and is still in progress testing. We will let you know once release, thanks
Hi @cowell-manhnt7190 the fix is already released on v2.7.0. Please kindly update Midtrans plugins using v2.7.0 If you have any general questions may you can reach out to us via Midtrans contact us page here
Thank you
Hi @Xaxxis Thank you so much for your support!
Preconditions and environment
Steps to reproduce
Expected result
Actual result
Hint maybe: When Input data is incorrect, order received Deny notification from midtrands, and order status change to Payment Review. After customer input correct data again, order received Capture notification from midtrands. However, the invoice is not generated because the order did not pass canInvoice function because the current status is Payment Review.