private function sendPayload(PayloadInterface $payload) { $response = $this->apiClient->send($payload); if (!$response->isOk()) { throw new \RuntimeException(sprintf('%s (%s)', $response->getErrorExplanation(), $response->getError())); } return $response; }