In Validation.php, there's an OrderPayment creation, i think it shouldn't be
if ($order->total_paid_real == $order->total_paid && $amount_paid == $order->total_paid) {
In PaymentModule class, there's a call to addOrderPayment that adds an Order Payment when order status is logable, or Remote Payment Accepted in logable.
I think the code for Order Payment creation is useless, and it creates a double Payments.
In Validation.php, there's an OrderPayment creation, i think it shouldn't be if ($order->total_paid_real == $order->total_paid && $amount_paid == $order->total_paid) {
In PaymentModule class, there's a call to addOrderPayment that adds an Order Payment when order status is logable, or Remote Payment Accepted in logable. I think the code for Order Payment creation is useless, and it creates a double Payments.