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:onExtendOrderPaymentTransactionsToolbar event

Triggered by /modules/shop/controllers/shop_orders/_form_area_preview_payment_transactions.htm
Author LemonStand eCommerce Inc.

Event handler signature

public void event_onExtendOrderPaymentTransactionsToolbar(Shop_Orders $controller, Shop_Order $order)
$controller Shop_Orders specifies the controller object.
$order Shop_Order specifies the order object.
Allows to add new buttons to the toolbar above the Payment Transactions list on Order Preview page in the Administration Area. The event handler should accept two parameter - the controller object, which you can use to render a partial containing additional buttons and the order object. Event handler example:
public function subscribeEvents()
{
  Backend::$events->addEvent('shop:onExtendOrderPaymentTransactionsToolbar', $this, 'extend_transactions_toolbar');
}

public function extend_transactions_toolbar($controller, $order)
{
  $controller->renderPartial(PATH_APP.'/modules/mymodule/partials/_transactions_toolbar.htm');
}

// Example of the _transactions_toolbar.htm partial

<div class="separator">&nbsp;</div>
<?= backend_ctr_button('My button', 'my_button_css_class', url('mymodule/manage/')) ?>