Explorar el Código

[producer] Paiement en ligne à la commande

dev
Guillaume hace 3 años
padre
commit
d70b50a052
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      producer/controllers/OrderController.php

+ 2
- 1
producer/controllers/OrderController.php Ver fichero

@@ -258,7 +258,8 @@ class OrderController extends ProducerBaseController
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([
'id' => $order->id
]);

Cargando…
Cancelar
Guardar