yf_shop__order_validate_select_payment user module| File | plugins/shop/modules/shop/yf_shop__order_validate_select_payment.class.php |
|---|---|
| Use | module('shop__order_validate_select_payment'), URL ?object=shop__order_validate_select_payment |
| Property | Default | Description |
|---|---|---|
| None declared in this class. | ||
None without a leading underscore.
_ hooks and helpers; not routable as page actionspublic function _order_validate_select_payment()
Order validation.
public function _order_validate_select_payment()
{
module('shop')->_order_validate_delivery();
if ( ! ($_POST['pay_type'] ?? null) || ! isset(module('shop')->_pay_types[$_POST['pay_type']])) {
_re('Wrong payment type');
}
}