예제 #1
0
 public function process(OrderInterface $order)
 {
     $order->setCheckoutState(OrderCheckoutStates::STATE_COMPLETED);
     $order->setShippingState(ShipmentInterface::STATE_PENDING);
     $order->setPaymentState(PaymentInterface::STATE_PENDING);
     $order->setState(OrderInterface::STATE_CONFIRMED);
     $order->setOrderedAt(new \DateTime());
     $this->confirmMailer->sendMail($order);
     $this->cartProvider->abandonCart();
 }