Hi, I am trying to implement a test button as refs here https://developers.shopware.com/developers-guide/plugin-guidelines/#testing-communication-with-external-apis
Hallo, ich versuche hier einen Testknopf als Referenz zu implementieren [https://developers.shopware.com/developers-guide/plugin-guidelines/#testing-communication-with-external-apis](https://developers.shopware.com/developers-guide/plugin-guidelines/#testing-communication-with-external-apis)
Here is my service file Hier ist meine Servicedatei
and
**MytestPaymentServices.php**
client = $client;
$this->logger = $logger;
parent::__construct();
}
public function testAction()
{
try {
$response = $this->client->get(self::EXTERNAL_API_BASE_URL);
if ((int) $response->getStatusCode() === Response::HTTP_OK) {
$this->View()->assign('response', 'Success!');
} else {
$this->View()->assign('response', 'Oh no! Something went wrong :(');
}
} catch (RequestException $exception) {
$this->logger->addError($exception->getMessage());
$this->response->setStatusCode(Response::HTTP_INTERNAL_SERVER_ERROR);
$this->View()->assign('response', $exception->getMessage());
}
}
}
but I get the following error
aber ich bekomme folgenden Fehler
Class Shopware_Controllers_Backend_MytestPaymentServices does not exist in engine/Library/Enlight/Hook/ProxyFactory.php on line 164
What do I do wrong?
Was mache ich falsch?