This is the API docs for LemonStand V1, which has been discontinued. LemonStand is now a cloud based platform, available at lemonstand.com.

LemonStand API

shop:onOrderError event

Triggered by Shop_Order
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onOrderError(string $cart_name, string $error_message)
$cart_name string specifies the shopping cart name.
$error_message string specifies the error message.
Triggered if an error occurs during the order placement. This event is triggered only if the order is created from the front-end store pages.
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onOrderError', $this, 'process_order_error');
}

public function process_order_error($cart_name, $error_message)
{
  // Do something
}