'shopware-app-signature' =>
$signature,
'sw-version' =>
$this->shopwareVersion,
] );
} public function fetchAppProof(): string
{ $proof =
$this->shopId .
$this->shopUrl .
$this->appName;
return $this->storeClient->
signPayloadWithAppSecret($proof,
$this->appName
);
} private function signPayload(string
$payload): string
{ try { return $this->storeClient->
signPayloadWithAppSecret($payload,
$this->appName
);
} catch (\Exception
$e) { if ($e instanceof ClientException
) { $response = \
json_decode($e->
getResponse()->
getBody()->
getContents(), true, \JSON_THROW_ON_ERROR, \JSON_THROW_ON_ERROR
);
if ($response['code'
] === self::SBP_EXCEPTION_UNAUTHORIZED ||
$response['code'
] === self::SBP_EXCEPTION_NO_LICENSE
) {