protected function CheckoutPaymentProcess::getErrorStepId in Commerce PayPal 8
Gets the step ID that the customer should be sent to on error.
Return value
string The error step ID.
Overrides PaymentProcess::getErrorStepId
File
- src/
Plugin/ Commerce/ CheckoutPane/ CheckoutPaymentProcess.php, line 51
Class
- CheckoutPaymentProcess
- Provides the PayPal Checkout payment process pane.
Namespace
Drupal\commerce_paypal\Plugin\Commerce\CheckoutPaneCode
protected function getErrorStepId() {
$visible_steps = $this->checkoutFlow
->getVisibleSteps();
return key($visible_steps);
}