I have configured Website Payments Pro Hosted Solution in magento 2.3.3 for paypal and card payment methods.

When placing an order using paypal, once the order is successful, order status changing to processing.

But when placing an order using card payments, once the order is successful, status is not changing to processing still it shows Pending Payment.

Any help on this issue?

2 Answers 2


I have fixed the issue by using the below link,


For now, we have changed line 38 of vendor/magento/module-sales/Model/Order/Payment/State/RegisterCaptureNotificationCommand.php from:
$state = $order->getState() ?: Order::STATE_PROCESSING; to $state = Order::STATE_PROCESSING;

I have the same problem as the Pending Payment status after successful order complete status. I tried the file modification procedure:

or now, we have changed line 38 of vendor / magento / module-sales / Model / Order / Payment / State / RegisterCaptureNotificationCommand.php from: $ state = $ order-> getState ()?: Order :: STATE_PROCESSING; to $ state = Order :: STATE_PROCESSING;

Actually now the orders do not remain in "Pending Payment" but unfortunately instead of going to the "PROCESSING" status they go directly to the "COMPLETE" status.

Did I do something wrong?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.