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

Triggered by Shop_PaymentMethod
Author LemonStand eCommerce Inc.

Event handler signature

public boolean event_onGetPaymentMethodFieldState(string $db_name, string $field_value, Shop_PaymentMethod $payment_method)
$db_name string specifies the field name.
$field_value string specifies the field value.
$payment_method Shop_PaymentMethod specifies the payment method object.
{return} boolean returns TRUE if the field is checked. Returns FALSE otherwise.
Determines whether a custom radio button or checkbox list option is checked. This event should be handled if you added custom radio-button and or checkbox list fields with shop:onExtendPaymentMethodForm event.