yf_shop__order_validate_select_payment user module

Fileplugins/shop/modules/shop/yf_shop__order_validate_select_payment.class.php
Usemodule('shop__order_validate_select_payment'), URL ?object=shop__order_validate_select_payment

Public properties

PropertyDefaultDescription
None declared in this class.

Public methods 1

None without a leading underscore.

Methods starting with _ hooks and helpers; not routable as page actions

public 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');
        }
    }