checkout_steps

Triggered when the list of available in-cart checkout steps is retrieved, which can be modified by plugins.

Shop-Script

Input (passed by reference)

$params['steps'] array Checkout steps. The keys are step IDs, the values are instances of checkout step classes extending shopCheckoutStep.
… your plugin code …

Output

Shop-Script

Plugin code example

PHP

public function checkoutSteps(&$params)
{
    if (!shopMyPlugin::mustOfferPayment($params)) {
        unset($params['steps']['payment']);
    }
}