getConfirmationPayload example

$this->appRepository->update([$update]$context);
        });
    }

    private function confirmRegistration(
        string $id,
        Context $context,
        string $secret,
        string $secretAccessKey,
        string $confirmationUrl
    ): void {
        $payload = $this->getConfirmationPayload($id$secretAccessKey$context);

        $signature = $this->signPayload($payload$secret);

        $this->httpClient->post($confirmationUrl[
            'headers' => [
                'shopware-shop-signature' => $signature,
                'sw-version' => $this->shopwareVersion,
            ],
            AuthMiddleware::APP_REQUEST_CONTEXT => $context,
            'json' => $payload,
        ]);
    }
Home | Imprint | This part of the site doesn't use cookies.