ryan hace 2 semanas
padre
commit
a34ef61854
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      common/services/GuestDeclarationOrderService.php

+ 1 - 0
common/services/GuestDeclarationOrderService.php

@@ -262,6 +262,7 @@ class GuestDeclarationOrderService
             }
             }
             throw new BadRequestHttpException('Guest order draft is already being submitted.');
             throw new BadRequestHttpException('Guest order draft is already being submitted.');
         }
         }
+        $draft->refresh();
         $paymentReference = 'GD' . strtoupper(bin2hex(random_bytes(12)));
         $paymentReference = 'GD' . strtoupper(bin2hex(random_bytes(12)));
         $init = \common\helpers\PayStack::transactionInit(
         $init = \common\helpers\PayStack::transactionInit(
             strtoupper($currency['CODE']),
             strtoupper($currency['CODE']),