diff --git a/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php b/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php
index b60a5540..acd0edff 100644
--- a/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php
+++ b/modules/payment/src/Plugin/Commerce/CheckoutPane/PaymentProcess.php
@@ -156,6 +156,13 @@ public function buildPaneForm(array $pane_form, FormStateInterface $form_state,
     $payment_gateway = $this->order->payment_gateway->entity;
     $payment_gateway_plugin = $payment_gateway->getPlugin();
 
+    $next_step_id = $this->checkoutFlow->getNextStepId($this->getStepId());
+
+    // The order price was paid.
+    if ($this->order->getTotalPaid()->greaterThanOrEqual($this->order->getTotalPrice())) {
+      $this->checkoutFlow->redirectToStep($next_step_id);
+    }
+
     $payment_storage = $this->entityTypeManager->getStorage('commerce_payment');
     /** @var \Drupal\commerce_payment\Entity\PaymentInterface $payment */
     $payment = $payment_storage->create([
@@ -164,7 +171,6 @@ public function buildPaneForm(array $pane_form, FormStateInterface $form_state,
       'payment_gateway' => $payment_gateway->id(),
       'order_id' => $this->order->id(),
     ]);
-    $next_step_id = $this->checkoutFlow->getNextStepId($this->getStepId());
 
     if ($payment_gateway_plugin instanceof OnsitePaymentGatewayInterface) {
       try {
