hydrateBasket example

'type' => $context->getPriceType(),
                    ],
                ],
            ],
        ];

        $response = $this->storeClient->doAuthPostRequest(
            $token,
            '/basket',
            $data
        );
        $basket = $this->hydrator->hydrateBasket($response);

        $basket->setLicenceDomain($context->getLicenceShop());

        foreach ($basket->getDomains() as $domain) {
            if ($domain->getDomain() !== $context->getLicenceShop()) {
                continue;
            }

            $basket->setLicenceShopId($domain->getId());
        }

        
Home | Imprint | This part of the site doesn't use cookies.