public function execute()

in Observer/InitiateCheckout.php [56:74]


    public function execute(Observer $observer)
    {
        try {
            $eventId = $observer->getData('eventId');
            $customData = [
                'currency'     => $this->magentoDataHelper->getCurrency(),
                'value'        => $this->magentoDataHelper->getCartTotal(),
                'content_type' => 'product',
                'content_ids'  => $this->magentoDataHelper->getCartContentIds(),
                'num_items'    => $this->magentoDataHelper->getCartNumItems(),
                'contents'     => $this->magentoDataHelper->getCartContents()
            ];
            $event = ServerEventFactory::createEvent('InitiateCheckout', array_filter($customData), $eventId);
            $this->serverSideHelper->sendEvent($event);
        } catch (\Exception $e) {
            $this->fbeHelper->log(json_encode($e));
        }
        return $this;
    }