return ['status' => 'error', 'errors' => $errors]; | return ['status' => 'error', 'errors' => $errors]; | ||||
} | } | ||||
if ($producer->online_payment && $producer->option_online_payment_type == 'order') { | |||||
if (($producer->online_payment || ($producer->option_stripe_mode_test && $user->status > 10) | |||||
&& $producer->option_online_payment_type == 'order') { | |||||
$order = Order::searchOne([ | $order = Order::searchOne([ | ||||
'id' => $order->id | 'id' => $order->id | ||||
]); | ]); |